Package com.itextpdf.signatures.cms
Class AlgorithmIdentifier
- java.lang.Object
-
- com.itextpdf.signatures.cms.AlgorithmIdentifier
-
public class AlgorithmIdentifier extends java.lang.Object
This class represents algorithm identifier structure.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
algorithm
private static IBouncyCastleFactory
BC_FACTORY
private IASN1Primitive
parameters
-
Constructor Summary
Constructors Constructor Description AlgorithmIdentifier(IASN1Encodable asnStruct)
Creates an Algorithm identifier structure with parameters.AlgorithmIdentifier(java.lang.String algorithmId)
Creates an Algorithm identifier structure without parameters.AlgorithmIdentifier(java.lang.String algorithmId, IASN1Primitive parameters)
Creates an Algorithm identifier structure with parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithmOid()
Return the OID of the algorithm.(package private) IASN1Sequence
getAsASN1Sequence()
IASN1Primitive
getParameters()
Return the parameters for the algorithm.
-
-
-
Field Detail
-
BC_FACTORY
private static final IBouncyCastleFactory BC_FACTORY
-
algorithm
private final java.lang.String algorithm
-
parameters
private final IASN1Primitive parameters
-
-
Constructor Detail
-
AlgorithmIdentifier
public AlgorithmIdentifier(java.lang.String algorithmId)
Creates an Algorithm identifier structure without parameters.- Parameters:
algorithmId
- the Object id of the algorithm
-
AlgorithmIdentifier
public AlgorithmIdentifier(java.lang.String algorithmId, IASN1Primitive parameters)
Creates an Algorithm identifier structure with parameters.- Parameters:
algorithmId
- the Object id of the algorithmparameters
- the algorithm parameters as an ASN1 structure
-
AlgorithmIdentifier
AlgorithmIdentifier(IASN1Encodable asnStruct)
Creates an Algorithm identifier structure with parameters.- Parameters:
asnStruct
- asn1 encodable to retrieve algorithm identifier
-
-
Method Detail
-
getAlgorithmOid
public java.lang.String getAlgorithmOid()
Return the OID of the algorithm.- Returns:
- the OID of the algorithm.
-
getParameters
public IASN1Primitive getParameters()
Return the parameters for the algorithm.- Returns:
- the parameters for the algorithm.
-
getAsASN1Sequence
IASN1Sequence getAsASN1Sequence()
-
-