Class InternalAuthenticateApduCommand
java.lang.Object
es.gob.jmulticard.apdu.Apdu
es.gob.jmulticard.apdu.CommandApdu
es.gob.jmulticard.apdu.iso7816four.InternalAuthenticateApduCommand
APDU ISO 7816-4 mediante la que se pide a la tarjeta que demuestre
que posee la clave privada de su certificado de componente.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte
Byte de instrucción de la APDU.private static final byte
Valor para indicar que no se dispone de información al respecto. -
Constructor Summary
ConstructorsConstructorDescriptionInternalAuthenticateApduCommand
(byte cla, byte[] randomBytes, byte[] privateKeyRef) Crea un objeto para la autenticación interna. -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte[]
buildData
(byte[] randomBytes, byte[] privateKeyRef)
-
Field Details
-
INS_INTERNAL_AUTHENTICATE
private static final byte INS_INTERNAL_AUTHENTICATEByte de instrucción de la APDU.- See Also:
-
NO_INFORMATION_GIVEN
private static final byte NO_INFORMATION_GIVENValor para indicar que no se dispone de información al respecto.- See Also:
-
-
Constructor Details
-
InternalAuthenticateApduCommand
public InternalAuthenticateApduCommand(byte cla, byte[] randomBytes, byte[] privateKeyRef) Crea un objeto para la autenticación interna.- Parameters:
cla
- Clase (CLA) de la APDU.randomBytes
- Array de 8 octetos aleatorios para la autenticación.privateKeyRef
- Referencia a la clave privada del certificado a autenticar.
-
-
Method Details
-
buildData
private static byte[] buildData(byte[] randomBytes, byte[] privateKeyRef)
-