org.mozilla.jss.crypto
Class Algorithm

java.lang.Object
  |
  +--org.mozilla.jss.crypto.Algorithm
Direct Known Subclasses:
DigestAlgorithm, EncryptionAlgorithm, KeyGenAlgorithm, KeyPairAlgorithm, KeyWrapAlgorithm, SignatureAlgorithm

public class Algorithm
extends java.lang.Object

Represents a cryptographic algorithm.

See Also:
EncryptionAlgorithm, SignatureAlgorithm

Method Summary
 java.lang.Class getParameterClass()
          The type of parameter that this algorithm expects.
 OBJECT_IDENTIFIER toOID()
          Returns the object identifier for this algorithm.
 java.lang.String toString()
          Returns a String representation of the algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Returns a String representation of the algorithm.
Overrides:
toString in class java.lang.Object

toOID

public OBJECT_IDENTIFIER toOID()
                        throws java.security.NoSuchAlgorithmException
Returns the object identifier for this algorithm.
Throws:
java.security.NoSuchAlgorithmException - If no OID is registered for this algorithm.

getParameterClass

public java.lang.Class getParameterClass()
The type of parameter that this algorithm expects. Returns null if this algorithm does not take any parameters.