Class AlgorithmIdentifier


  • public class AlgorithmIdentifier
    extends java.lang.Object
    This class represents algorithm identifier structure.
    • 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 algorithm
        parameters - 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.