Package es.gob.jmulticard.asn1.icao
Enum CardAccess.PaceAlgorithm
- java.lang.Object
-
- java.lang.Enum<CardAccess.PaceAlgorithm>
-
- es.gob.jmulticard.asn1.icao.CardAccess.PaceAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CardAccess.PaceAlgorithm>
- Enclosing class:
- CardAccess
public static enum CardAccess.PaceAlgorithm extends java.lang.Enum<CardAccess.PaceAlgorithm>
Algoritmo de establecimiento de canal PACE.Los OID son una combinación de:
- 0.4.0.127.0.7 (bsi-de)
-
- 2.2.4 (id_PACE)
-
- 1 (id_PACE_DH_GM)
- 2 (id_PACE_ECDH_GM)
- 3 (id_PACE_DH_IM)
- 4 (id_PACE_ECDH_IM)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PACE_DH_GM_AES_CBC_CMAC_128id_PACE_DH_GM_AES_CBC_CMAC_128 (OID 0.4.0.127.0.7.2.2.4.1.2).PACE_ECDH_GM_AES_CBC_CMAC_128id_PACE_ECDH_GM_AES_CBC_CMAC_128 (OID 0.4.0.127.0.7.2.2.4.2.2).PACE_ECDH_GM_AES_CBC_CMAC_192id_PACE_ECDH_GM_AES_CBC_CMAC_192 (OID 0.4.0.127.0.7.2.2.4.2.3).
-
Constructor Summary
Constructors Modifier Constructor Description privatePaceAlgorithm(byte[] oid, int keyLen)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()Obtiene la representación binaria del OID.intgetKeyLength()Obtiene la longitud de clave del algoritmo (en bits).static CardAccess.PaceAlgorithmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CardAccess.PaceAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACE_ECDH_GM_AES_CBC_CMAC_128
public static final CardAccess.PaceAlgorithm PACE_ECDH_GM_AES_CBC_CMAC_128
id_PACE_ECDH_GM_AES_CBC_CMAC_128 (OID 0.4.0.127.0.7.2.2.4.2.2).
-
PACE_ECDH_GM_AES_CBC_CMAC_192
public static final CardAccess.PaceAlgorithm PACE_ECDH_GM_AES_CBC_CMAC_192
id_PACE_ECDH_GM_AES_CBC_CMAC_192 (OID 0.4.0.127.0.7.2.2.4.2.3).
-
PACE_DH_GM_AES_CBC_CMAC_128
public static final CardAccess.PaceAlgorithm PACE_DH_GM_AES_CBC_CMAC_128
id_PACE_DH_GM_AES_CBC_CMAC_128 (OID 0.4.0.127.0.7.2.2.4.1.2).
-
-
Method Detail
-
values
public static CardAccess.PaceAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CardAccess.PaceAlgorithm c : CardAccess.PaceAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CardAccess.PaceAlgorithm valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getBytes
public byte[] getBytes()
Obtiene la representación binaria del OID.- Returns:
- Representación binaria del OID.
-
getKeyLength
public int getKeyLength()
Obtiene la longitud de clave del algoritmo (en bits).- Returns:
- Longitud (en bits) de clave del algoritmo.
-
-