Package org.bouncycastle.asn1.x509
Class AlgorithmIdentifier
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.x509.AlgorithmIdentifier
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
- Direct Known Subclasses:
PBES2Algorithms
public class AlgorithmIdentifier extends ASN1Object
-
-
Constructor Summary
Constructors Constructor Description AlgorithmIdentifier(String objectId)Deprecated.use ASN1ObjectIdentifierAlgorithmIdentifier(ASN1ObjectIdentifier objectId)AlgorithmIdentifier(ASN1ObjectIdentifier objectId, ASN1Encodable parameters)AlgorithmIdentifier(ASN1Sequence seq)Deprecated.use AlgorithmIdentifier.getInstance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ASN1ObjectIdentifiergetAlgorithm()static AlgorithmIdentifiergetInstance(Object obj)static AlgorithmIdentifiergetInstance(ASN1TaggedObject obj, boolean explicit)ASN1ObjectIdentifiergetObjectId()Deprecated.use getAlgorithmASN1EncodablegetParameters()ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
-
-
-
Constructor Detail
-
AlgorithmIdentifier
public AlgorithmIdentifier(ASN1ObjectIdentifier objectId)
-
AlgorithmIdentifier
public AlgorithmIdentifier(String objectId)
Deprecated.use ASN1ObjectIdentifier- Parameters:
objectId-
-
AlgorithmIdentifier
public AlgorithmIdentifier(ASN1ObjectIdentifier objectId, ASN1Encodable parameters)
-
AlgorithmIdentifier
public AlgorithmIdentifier(ASN1Sequence seq)
Deprecated.use AlgorithmIdentifier.getInstance()- Parameters:
seq-
-
-
Method Detail
-
getInstance
public static AlgorithmIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static AlgorithmIdentifier getInstance(Object obj)
-
getAlgorithm
public ASN1ObjectIdentifier getAlgorithm()
-
getObjectId
public ASN1ObjectIdentifier getObjectId()
Deprecated.use getAlgorithm- Returns:
-
getParameters
public ASN1Encodable getParameters()
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY DEFINED BY algorithm OPTIONAL }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-