Package org.jmrtd.lds
Class SecurityInfo
- java.lang.Object
-
- org.jmrtd.lds.AbstractLDSInfo
-
- org.jmrtd.lds.SecurityInfo
-
- All Implemented Interfaces:
Serializable
,LDSElement
- Direct Known Subclasses:
ActiveAuthenticationInfo
,ChipAuthenticationInfo
,ChipAuthenticationPublicKeyInfo
,PACEDomainParameterInfo
,PACEInfo
,TerminalAuthenticationInfo
public abstract class SecurityInfo extends AbstractLDSInfo
Abstract base class for security info structure. See the BSI EAC 1.11 specification. See the ICAO TR - SAC v1.1 specification.- Version:
- $Revision: 1805 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SecurityInfo()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract ASN1Primitive
getDERObject()
Deprecated.this method will be removed from visible interface (because of dependency on BC API)static SecurityInfo
getInstance(ASN1Primitive obj)
Factory method for creating security info objects given an input.abstract String
getObjectIdentifier()
Returns the protocol object identifier of this SecurityInfo.abstract String
getProtocolOIDString()
Gets the protocol object identifier as a human readable string.void
writeObject(OutputStream outputStream)
Writes this SecurityInfo to output stream.-
Methods inherited from class org.jmrtd.lds.AbstractLDSInfo
getEncoded
-
-
-
-
Field Detail
-
ID_AA
public static final String ID_AA
Used in ECDSA based Active Authentication.{joint-iso-itu-t(2) international-organizations(23) 136 mrtd(1) security(1) aaProtocolObject(5)}
.- See Also:
- Constant Field Values
-
ID_PK_DH
public static final String ID_PK_DH
-
ID_PK_ECDH
public static final String ID_PK_ECDH
-
ID_CA_DH_3DES_CBC_CBC
public static final String ID_CA_DH_3DES_CBC_CBC
Used in Chip Authentication 1 and 2.
-
ID_CA_ECDH_3DES_CBC_CBC
public static final String ID_CA_ECDH_3DES_CBC_CBC
Used in Chip Authentication 1 and 2.
-
ID_CA_DH_AES_CBC_CMAC_128
public static final String ID_CA_DH_AES_CBC_CMAC_128
Used in Chip Authentication 1 and 2.- See Also:
- Constant Field Values
-
ID_CA_DH_AES_CBC_CMAC_192
public static final String ID_CA_DH_AES_CBC_CMAC_192
Used in Chip Authentication 1 and 2.- See Also:
- Constant Field Values
-
ID_CA_DH_AES_CBC_CMAC_256
public static final String ID_CA_DH_AES_CBC_CMAC_256
Used in Chip Authentication 1 and 2.- See Also:
- Constant Field Values
-
ID_CA_ECDH_AES_CBC_CMAC_128
public static final String ID_CA_ECDH_AES_CBC_CMAC_128
Used in Chip Authentication 1 and 2.- See Also:
- Constant Field Values
-
ID_CA_ECDH_AES_CBC_CMAC_192
public static final String ID_CA_ECDH_AES_CBC_CMAC_192
Used in Chip Authentication 1 and 2.- See Also:
- Constant Field Values
-
ID_CA_ECDH_AES_CBC_CMAC_256
public static final String ID_CA_ECDH_AES_CBC_CMAC_256
Used in Chip Authentication 1 and 2.- See Also:
- Constant Field Values
-
ID_TA
public static final String ID_TA
Used in Terminal Authentication 1 and 2.
-
ID_TA_RSA
public static final String ID_TA_RSA
Used in Terminal Authentication 1 and 2.
-
ID_TA_RSA_V1_5_SHA_1
public static final String ID_TA_RSA_V1_5_SHA_1
Used in Terminal Authentication 1 and 2.
-
ID_TA_RSA_V1_5_SHA_256
public static final String ID_TA_RSA_V1_5_SHA_256
Used in Terminal Authentication 1 and 2.
-
ID_TA_RSA_PSS_SHA_1
public static final String ID_TA_RSA_PSS_SHA_1
Used in Terminal Authentication 1 and 2.
-
ID_TA_RSA_PSS_SHA_256
public static final String ID_TA_RSA_PSS_SHA_256
Used in Terminal Authentication 1 and 2.
-
ID_TA_ECDSA
public static final String ID_TA_ECDSA
Used in Terminal Authentication 1 and 2.
-
ID_TA_ECDSA_SHA_1
public static final String ID_TA_ECDSA_SHA_1
Used in Terminal Authentication 1 and 2.
-
ID_TA_ECDSA_SHA_224
public static final String ID_TA_ECDSA_SHA_224
Used in Terminal Authentication 1 and 2.
-
ID_TA_ECDSA_SHA_256
public static final String ID_TA_ECDSA_SHA_256
Used in Terminal Authentication 1 and 2.
-
ID_EC_PUBLIC_KEY_TYPE
public static final String ID_EC_PUBLIC_KEY_TYPE
-
ID_EC_PUBLIC_KEY
public static final String ID_EC_PUBLIC_KEY
-
ID_PACE
public static final String ID_PACE
- See Also:
- Constant Field Values
-
ID_PACE_DH_GM
public static final String ID_PACE_DH_GM
- See Also:
- Constant Field Values
-
ID_PACE_DH_GM_3DES_CBC_CBC
public static final String ID_PACE_DH_GM_3DES_CBC_CBC
- See Also:
- Constant Field Values
-
ID_PACE_DH_GM_AES_CBC_CMAC_128
public static final String ID_PACE_DH_GM_AES_CBC_CMAC_128
- See Also:
- Constant Field Values
-
ID_PACE_DH_GM_AES_CBC_CMAC_192
public static final String ID_PACE_DH_GM_AES_CBC_CMAC_192
- See Also:
- Constant Field Values
-
ID_PACE_DH_GM_AES_CBC_CMAC_256
public static final String ID_PACE_DH_GM_AES_CBC_CMAC_256
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_GM
public static final String ID_PACE_ECDH_GM
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_GM_3DES_CBC_CBC
public static final String ID_PACE_ECDH_GM_3DES_CBC_CBC
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_GM_AES_CBC_CMAC_128
public static final String ID_PACE_ECDH_GM_AES_CBC_CMAC_128
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_GM_AES_CBC_CMAC_192
public static final String ID_PACE_ECDH_GM_AES_CBC_CMAC_192
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_GM_AES_CBC_CMAC_256
public static final String ID_PACE_ECDH_GM_AES_CBC_CMAC_256
- See Also:
- Constant Field Values
-
ID_PACE_DH_IM
public static final String ID_PACE_DH_IM
- See Also:
- Constant Field Values
-
ID_PACE_DH_IM_3DES_CBC_CBC
public static final String ID_PACE_DH_IM_3DES_CBC_CBC
- See Also:
- Constant Field Values
-
ID_PACE_DH_IM_AES_CBC_CMAC_128
public static final String ID_PACE_DH_IM_AES_CBC_CMAC_128
- See Also:
- Constant Field Values
-
ID_PACE_DH_IM_AES_CBC_CMAC_192
public static final String ID_PACE_DH_IM_AES_CBC_CMAC_192
- See Also:
- Constant Field Values
-
ID_PACE_DH_IM_AES_CBC_CMAC_256
public static final String ID_PACE_DH_IM_AES_CBC_CMAC_256
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_IM
public static final String ID_PACE_ECDH_IM
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_IM_3DES_CBC_CBC
public static final String ID_PACE_ECDH_IM_3DES_CBC_CBC
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_IM_AES_CBC_CMAC_128
public static final String ID_PACE_ECDH_IM_AES_CBC_CMAC_128
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_IM_AES_CBC_CMAC_192
public static final String ID_PACE_ECDH_IM_AES_CBC_CMAC_192
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_IM_AES_CBC_CMAC_256
public static final String ID_PACE_ECDH_IM_AES_CBC_CMAC_256
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_CAM
public static final String ID_PACE_ECDH_CAM
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_CAM_AES_CBC_CMAC_128
public static final String ID_PACE_ECDH_CAM_AES_CBC_CMAC_128
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_CAM_AES_CBC_CMAC_192
public static final String ID_PACE_ECDH_CAM_AES_CBC_CMAC_192
- See Also:
- Constant Field Values
-
ID_PACE_ECDH_CAM_AES_CBC_CMAC_256
public static final String ID_PACE_ECDH_CAM_AES_CBC_CMAC_256
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDERObject
@Deprecated public abstract ASN1Primitive getDERObject()
Deprecated.this method will be removed from visible interface (because of dependency on BC API)Returns a DER object with this SecurityInfo data (DER sequence).- Returns:
- a DER object with this SecurityInfo data
-
writeObject
public void writeObject(OutputStream outputStream) throws IOException
Writes this SecurityInfo to output stream.- Specified by:
writeObject
in classAbstractLDSInfo
- Parameters:
outputStream
- an ouput stream- Throws:
IOException
- if writing fails
-
getObjectIdentifier
public abstract String getObjectIdentifier()
Returns the protocol object identifier of this SecurityInfo.- Returns:
- this protocol object identifier
-
getProtocolOIDString
public abstract String getProtocolOIDString()
Gets the protocol object identifier as a human readable string.- Returns:
- a human readable string representing the protocol object identifier
-
getInstance
public static SecurityInfo getInstance(ASN1Primitive obj)
Factory method for creating security info objects given an input.- Parameters:
obj
- the input- Returns:
- a concrete security info object
-
-