Package org.jmrtd.lds

Class ActiveAuthenticationInfo

    • Constructor Detail

      • ActiveAuthenticationInfo

        public ActiveAuthenticationInfo​(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 String getObjectIdentifier()
        Gets 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 String getProtocolOIDString()
        Gets 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 String getSignatureAlgorithmOID()
        Gets the signature algorithm object identifier.
        Returns:
        signature algorithm OID
      • toString

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

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

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

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

        public static String toSignatureAlgorithmOIDString​(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