Package es.gob.jmulticard.apdu.gemalto
Class MseSetSignatureKeyApduCommand
- java.lang.Object
-
- es.gob.jmulticard.apdu.Apdu
-
- es.gob.jmulticard.apdu.CommandApdu
-
- es.gob.jmulticard.apdu.gemalto.MseSetSignatureKeyApduCommand
-
public final class MseSetSignatureKeyApduCommand extends CommandApdu
APDU ISO 7816-4 de gestión de entorno de seguridad orientada a establecer una clave privada para firma.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MseSetSignatureKeyApduCommand.CryptographicMechanism
Mecanismo criptográfico a usar con la clave privada establecida.
-
Field Summary
Fields Modifier and Type Field Description private static byte
CRYPTOGRAPHIC_MECHANISM
Etiqueta para hacer referencia a un mecanismo criptográfico.private static byte
INS_MANAGE_ENVIROMENT
Octeto de instrucción de la APDU.private static byte
PRIVATE_KEY_REFERENCE
Etiqueta para hacer referencia a un fichero dedicado.private static byte
SET_FOR_SIGN
Establece la clave indicada para firma.private static byte
SIGN_TEMPLATE
Plantilla de referencia de control para firma
-
Constructor Summary
Constructors Constructor Description MseSetSignatureKeyApduCommand(byte cla, MseSetSignatureKeyApduCommand.CryptographicMechanism algo, byte privateKeyReference)
Crea una APDU para el establecimiento de la clave privada de firma.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static byte[]
buidData(MseSetSignatureKeyApduCommand.CryptographicMechanism algo, byte privateKeyReference)
-
-
-
Field Detail
-
INS_MANAGE_ENVIROMENT
private static final byte INS_MANAGE_ENVIROMENT
Octeto de instrucción de la APDU.- See Also:
- Constant Field Values
-
SET_FOR_SIGN
private static final byte SET_FOR_SIGN
Establece la clave indicada para firma.- See Also:
- Constant Field Values
-
SIGN_TEMPLATE
private static final byte SIGN_TEMPLATE
Plantilla de referencia de control para firma- See Also:
- Constant Field Values
-
PRIVATE_KEY_REFERENCE
private static final byte PRIVATE_KEY_REFERENCE
Etiqueta para hacer referencia a un fichero dedicado.- See Also:
- Constant Field Values
-
CRYPTOGRAPHIC_MECHANISM
private static final byte CRYPTOGRAPHIC_MECHANISM
Etiqueta para hacer referencia a un mecanismo criptográfico.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MseSetSignatureKeyApduCommand
public MseSetSignatureKeyApduCommand(byte cla, MseSetSignatureKeyApduCommand.CryptographicMechanism algo, byte privateKeyReference)
Crea una APDU para el establecimiento de la clave privada de firma.- Parameters:
cla
- Clase (CLA) de la APDU.algo
- Mecanismo criptográfico a usar con la clave privada establecida.privateKeyReference
- Referencia a la clave a establecer.
-
-
Method Detail
-
buidData
private static byte[] buidData(MseSetSignatureKeyApduCommand.CryptographicMechanism algo, byte privateKeyReference)
-
-