Package org.jmrtd.lds
Class ActiveAuthenticationInfo
- java.lang.Object
-
- org.jmrtd.lds.AbstractLDSInfo
-
- org.jmrtd.lds.SecurityInfo
-
- org.jmrtd.lds.ActiveAuthenticationInfo
-
- All Implemented Interfaces:
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: 1808 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ECDSA_PLAIN_RIPEMD160_OID
static String
ECDSA_PLAIN_SHA1_OID
static String
ECDSA_PLAIN_SHA224_OID
static String
ECDSA_PLAIN_SHA256_OID
static String
ECDSA_PLAIN_SHA384_OID
static String
ECDSA_PLAIN_SHA512_OID
static String
ECDSA_PLAIN_SIGNATURES
Specified in BSI TR 03111 Section 5.2.1.static int
VERSION_1
-
Fields inherited from class org.jmrtd.lds.SecurityInfo
ID_AA, ID_CA_DH_3DES_CBC_CBC, ID_CA_DH_AES_CBC_CMAC_128, ID_CA_DH_AES_CBC_CMAC_192, ID_CA_DH_AES_CBC_CMAC_256, ID_CA_ECDH_3DES_CBC_CBC, ID_CA_ECDH_AES_CBC_CMAC_128, ID_CA_ECDH_AES_CBC_CMAC_192, ID_CA_ECDH_AES_CBC_CMAC_256, ID_EC_PUBLIC_KEY, ID_EC_PUBLIC_KEY_TYPE, ID_PACE, ID_PACE_DH_GM, ID_PACE_DH_GM_3DES_CBC_CBC, ID_PACE_DH_GM_AES_CBC_CMAC_128, ID_PACE_DH_GM_AES_CBC_CMAC_192, ID_PACE_DH_GM_AES_CBC_CMAC_256, ID_PACE_DH_IM, ID_PACE_DH_IM_3DES_CBC_CBC, ID_PACE_DH_IM_AES_CBC_CMAC_128, ID_PACE_DH_IM_AES_CBC_CMAC_192, ID_PACE_DH_IM_AES_CBC_CMAC_256, ID_PACE_ECDH_CAM, ID_PACE_ECDH_CAM_AES_CBC_CMAC_128, ID_PACE_ECDH_CAM_AES_CBC_CMAC_192, ID_PACE_ECDH_CAM_AES_CBC_CMAC_256, ID_PACE_ECDH_GM, ID_PACE_ECDH_GM_3DES_CBC_CBC, ID_PACE_ECDH_GM_AES_CBC_CMAC_128, ID_PACE_ECDH_GM_AES_CBC_CMAC_192, ID_PACE_ECDH_GM_AES_CBC_CMAC_256, ID_PACE_ECDH_IM, ID_PACE_ECDH_IM_3DES_CBC_CBC, ID_PACE_ECDH_IM_AES_CBC_CMAC_128, ID_PACE_ECDH_IM_AES_CBC_CMAC_192, ID_PACE_ECDH_IM_AES_CBC_CMAC_256, ID_PK_DH, ID_PK_ECDH, ID_TA, ID_TA_ECDSA, ID_TA_ECDSA_SHA_1, ID_TA_ECDSA_SHA_224, ID_TA_ECDSA_SHA_256, ID_TA_RSA, ID_TA_RSA_PSS_SHA_1, ID_TA_RSA_PSS_SHA_256, ID_TA_RSA_V1_5_SHA_1, ID_TA_RSA_V1_5_SHA_256
-
-
Constructor Summary
Constructors Constructor Description ActiveAuthenticationInfo(String signatureAlgorithmOID)
Constructs a new object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object other)
Tests equality with respect to another object.ASN1Primitive
getDERObject()
Deprecated.Remove this method from visible interface (because of dependency on BC API)String
getObjectIdentifier()
Returns the protocol object identifier of this AA security info.String
getProtocolOIDString()
Returns the protocol object identifier as a human readable string.String
getSignatureAlgorithmOID()
Returns the signature algorithm object identifier.int
getVersion()
Returns the version of the Active Authentication protocol (should be 1).int
hashCode()
Returns the hash code of this object.static String
lookupMnemonicByOID(String oid)
Translates an OID string to a Java mnemonic algorithm string.static String
toSignatureAlgorithmOIDString(String oid)
Returns a human readable rendering of the given object identifier string.String
toString()
Returns a textual representation of this object.-
Methods inherited from class org.jmrtd.lds.AbstractLDSInfo
getEncoded
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class org.jmrtd.lds.SecurityInfo
getInstance, writeObject
-
-
-
-
Field Detail
-
VERSION_1
public static final int VERSION_1
- See Also:
- Constant Field Values
-
ECDSA_PLAIN_SIGNATURES
public static final 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 String ECDSA_PLAIN_SHA1_OID
- See Also:
- Constant Field Values
-
ECDSA_PLAIN_SHA224_OID
public static final String ECDSA_PLAIN_SHA224_OID
- See Also:
- Constant Field Values
-
ECDSA_PLAIN_SHA256_OID
public static final String ECDSA_PLAIN_SHA256_OID
- See Also:
- Constant Field Values
-
ECDSA_PLAIN_SHA384_OID
public static final String ECDSA_PLAIN_SHA384_OID
- See Also:
- Constant Field Values
-
ECDSA_PLAIN_SHA512_OID
public static final String ECDSA_PLAIN_SHA512_OID
- See Also:
- Constant Field Values
-
ECDSA_PLAIN_RIPEMD160_OID
public static final String ECDSA_PLAIN_RIPEMD160_OID
- See Also:
- Constant Field Values
-
-
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 classSecurityInfo
- Returns:
- a DER object with this SecurityInfo data
-
getObjectIdentifier
public String getObjectIdentifier()
Returns the protocol object identifier of this AA security info.- Specified by:
getObjectIdentifier
in classSecurityInfo
- 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()
Returns the protocol object identifier as a human readable string.- Specified by:
getProtocolOIDString
in classSecurityInfo
- Returns:
- a string representing the protocol object identifier
-
getSignatureAlgorithmOID
public String getSignatureAlgorithmOID()
Returns the signature algorithm object identifier.- Returns:
- signature algorithm OID
-
toString
public String toString()
Returns a textual representation of this object.
-
equals
public boolean equals(Object other)
Tests equality with respect to another object.
-
hashCode
public int hashCode()
Returns the hash code of this object.
-
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
-
-