|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.AlgorithmIdentifier
This class encapsulates an AlgorithmIdentifier object, as defined in X.509 and as used in several other standards, such as PKCS.
Instances consist of an OID which identifies the algorithm, together with an optional parameters object, which can be any ASN.1 object.
Instances are considered equal if they have the same OID and parameters, with the proviso that no distinction is made between the parameters being encoded as the ASN.1 NULL object and the parameters being omitted entirely.
Constructor Summary | |
protected |
AlgorithmIdentifier() |
|
AlgorithmIdentifier(ASN1ObjectID oid) Creates a new algorithm identifier without parameters. |
|
AlgorithmIdentifier(ASN1ObjectID oid, ASN1Object parameters) Creates a new algorithm identifier with the given algorithm OID and parameters. |
|
AlgorithmIdentifier(ASN1ObjectID oid, boolean useNULL) Creates a new algorithm identifier with the given algorithm OID and no parameters. |
|
AlgorithmIdentifier(ASN1Sequence s) |
|
AlgorithmIdentifier(java.io.InputStream is) |
Method Summary | |
java.lang.Object |
clone() Creates a deep copy of this AlgorithmIdentifier object. |
boolean |
equals(java.lang.Object o) |
ASN1ObjectID |
getOID() Returns the algorithm OID. |
ASN1Object |
getParameters() Returns the algorithm parameters, or null if they are not present. |
int |
hashCode() |
void |
input(java.io.InputStream is) Inputs this object from the specified input stream. |
int |
length() Length of this object's encoding. |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AlgorithmIdentifier(ASN1ObjectID oid, ASN1Object parameters)
oid
- the OID which identifies the algorithmparameters
- the algorithm parameterspublic AlgorithmIdentifier(ASN1ObjectID oid, boolean useNULL)
oid
- the OID which identifies the algorithmuseNULL
-public AlgorithmIdentifier(ASN1ObjectID oid)
public AlgorithmIdentifier(java.io.InputStream is) throws java.io.IOException
public AlgorithmIdentifier(ASN1Sequence s) throws ASN1FormatException
protected AlgorithmIdentifier()
Method Detail |
public ASN1ObjectID getOID()
public ASN1Object getParameters()
null
if they are not present.public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public java.lang.Object clone()
AlgorithmIdentifier
object.public void input(java.io.InputStream is) throws java.io.IOException
Streamable
input
in interface Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
Streamable
output
in interface Streamable
java.io.IOException
public int length()
Streamable
length
in interface Streamable
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |