org.mozilla.jss.pkix.primitive
Class AlgorithmIdentifier
java.lang.Object
org.mozilla.jss.pkix.primitive.AlgorithmIdentifier
- ASN1Value
public class AlgorithmIdentifier
extends java.lang.Object
TAG
public static final Tag TAG
AlgorithmIdentifier
public AlgorithmIdentifier(OBJECT_IDENTIFIER oid)
Creates an AlgorithmIdentifier with no parameter.
AlgorithmIdentifier
public AlgorithmIdentifier(OBJECT_IDENTIFIER oid,
ASN1Value parameters)
Creates an AlgorithmIdentifier.
parameters
- The algorithm parameters. A value of null
will be encoded with an ASN.1 NULL
.
encode
public void encode(OutputStream ostream)
throws IOException
- encode in interface ASN1Value
encode
public void encode(Tag implicit,
OutputStream ostream)
throws IOException
- encode in interface ASN1Value
getParameters
public ASN1Value getParameters()
If this instance was constructed, returns the
parameter passed in to the constructer. If this instance was
decoded from a template, returns an ANY that was read from the
BER stream. In either case, it will return null if no parameters
were supplied.