org.mozilla.jss.pkix.primitive

Class AlgorithmIdentifier

public class AlgorithmIdentifier extends Object implements ASN1Value

Nested Class Summary
static classAlgorithmIdentifier.Template
Field Summary
static TagTAG
Constructor Summary
AlgorithmIdentifier(OBJECT_IDENTIFIER oid)
Creates an AlgorithmIdentifier with no parameter.
AlgorithmIdentifier(OBJECT_IDENTIFIER oid, ASN1Value parameters)
Creates an AlgorithmIdentifier.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicit, OutputStream ostream)
OBJECT_IDENTIFIERgetOID()
ASN1ValuegetParameters()
If this instance was constructed, returns the parameter passed in to the constructer.
TaggetTag()
static AlgorithmIdentifier.TemplategetTemplate()

Field Detail

TAG

public static final Tag TAG

Constructor Detail

AlgorithmIdentifier

public AlgorithmIdentifier(OBJECT_IDENTIFIER oid)
Creates an AlgorithmIdentifier with no parameter.

AlgorithmIdentifier

public AlgorithmIdentifier(OBJECT_IDENTIFIER oid, ASN1Value parameters)
Creates an AlgorithmIdentifier.

Parameters: parameters The algorithm parameters. A value of null will be encoded with an ASN.1 NULL.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicit, OutputStream ostream)

getOID

public OBJECT_IDENTIFIER getOID()

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.

getTag

public Tag getTag()

getTemplate

public static AlgorithmIdentifier.Template getTemplate()