Package org.jmrtd.lds

Class ActiveAuthenticationInfo

  • All Implemented Interfaces:
    java.io.Serializable, LDSElement

    public class ActiveAuthenticationInfo
    extends SecurityInfo
    A concrete SecurityInfo structure that stores active authentication info, see TR-LDS-PKI Maintenance V1.0.
    Version:
    $Revision: 1858 $
    Author:
    The JMRTD team ([email protected])
    See Also:
    Serialized Form
    • Field Detail

      • ECDSA_PLAIN_SIGNATURES

        public static final java.lang.String ECDSA_PLAIN_SIGNATURES
        Specified in BSI TR 03111 Section 5.2.1.
        See Also:
        Constant Field Values
      • ECDSA_PLAIN_SHA1_OID

        public static final java.lang.String ECDSA_PLAIN_SHA1_OID
        See Also:
        Constant Field Values
      • ECDSA_PLAIN_SHA224_OID

        public static final java.lang.String ECDSA_PLAIN_SHA224_OID
        See Also:
        Constant Field Values
      • ECDSA_PLAIN_SHA256_OID

        public static final java.lang.String ECDSA_PLAIN_SHA256_OID
        See Also:
        Constant Field Values
      • ECDSA_PLAIN_SHA384_OID

        public static final java.lang.String ECDSA_PLAIN_SHA384_OID
        See Also:
        Constant Field Values
      • ECDSA_PLAIN_SHA512_OID

        public static final java.lang.String ECDSA_PLAIN_SHA512_OID
        See Also:
        Constant Field Values
      • ECDSA_PLAIN_RIPEMD160_OID

        public static final java.lang.String ECDSA_PLAIN_RIPEMD160_OID
        See Also:
        Constant Field Values
    • Constructor Detail

      • ActiveAuthenticationInfo

        public ActiveAuthenticationInfo​(java.lang.String signatureAlgorithmOID)
        Constructs a new object.
        Parameters:
        signatureAlgorithmOID - the signature algorithm OID
    • Method Detail

      • getDERObject

        @Deprecated
        public ASN1Primitive getDERObject()
        Deprecated.
        Remove this method from visible interface (because of dependency on BC API)
        Returns a DER object with this SecurityInfo data (DER sequence).
        Specified by:
        getDERObject in class SecurityInfo
        Returns:
        a DER object with this SecurityInfo data
      • getObjectIdentifier

        public java.lang.String getObjectIdentifier()
        Returns the protocol object identifier of this AA security info.
        Specified by:
        getObjectIdentifier in class SecurityInfo
        Returns:
        an object identifier
      • getVersion

        public int getVersion()
        Returns the version of the Active Authentication protocol (should be 1).
        Returns:
        the version
      • getProtocolOIDString

        public java.lang.String getProtocolOIDString()
        Returns the protocol object identifier as a human readable string.
        Specified by:
        getProtocolOIDString in class SecurityInfo
        Returns:
        a string representing the protocol object identifier
      • getSignatureAlgorithmOID

        public java.lang.String getSignatureAlgorithmOID()
        Returns the signature algorithm object identifier.
        Returns:
        signature algorithm OID
      • toString

        public java.lang.String toString()
        Returns a textual representation of this object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a textual representation of this object
      • equals

        public boolean equals​(java.lang.Object other)
        Tests equality with respect to another object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - another object
        Returns:
        whether this object equals the other object
      • hashCode

        public int hashCode()
        Returns the hash code of this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • lookupMnemonicByOID

        public static java.lang.String lookupMnemonicByOID​(java.lang.String oid)
                                                    throws java.security.NoSuchAlgorithmException
        Translates an OID string to a Java mnemonic algorithm string.
        Parameters:
        oid - the OID string
        Returns:
        a mnemonic algorithm string
        Throws:
        java.security.NoSuchAlgorithmException - if the OID was not recognized
      • toSignatureAlgorithmOIDString

        public static java.lang.String toSignatureAlgorithmOIDString​(java.lang.String oid)
        Returns a human readable rendering of the given object identifier string.
        Parameters:
        oid - the object identifier (dotted notation)
        Returns:
        a human readable string representing the given object identifier