Class CeresPrKdf
java.lang.Object
es.gob.jmulticard.asn1.DecoderObject
es.gob.jmulticard.asn1.der.Record
es.gob.jmulticard.asn1.custom.fnmt.ceres.CeresPrKdf
- All Implemented Interfaces:
Pkcs15PrKdf
Objeto PKCS#15 PrKDF (Private Key Description File) ASN.1
específico para ciertas tarjetas FNMT CERES.
El PrKDF es una secuencia de estructuras
PKCS15PrivateKey:
PKCS15PrivateKey ::= CHOICE {
privateRSAKey [0] PKCS15PrivateKeyObject {
PKCS15PrivateRSAKeyAttributes
},
privateECKey [1] PKCS15PrivateKeyObject {
PKCS15PrivateECKeyAttributes
},
... -- More private key types TBD --
}
PKCS15PrivateKeyObject {KeyAttributes} ::= PKCS15Object {
PKCS15CommonKeyAttributes,
PKCS15CommonPrivateKeyAttributes,
KeyAttributes
}
En este caso, las claves siempre serán de tipo RSA.-
Constructor Summary
ConstructorsConstructorDescriptionConstruye un objeto PKCS#15 PrKDF (Private Key Description File) ASN.1 específico para ciertas tarjetas FNMT CERES. -
Method Summary
Modifier and TypeMethodDescriptionintObtiene el número de claves del PrKDF.byte[]getKeyId(int index) Obtiene el identificador de la clave indicada.getKeyPath(int index) Obtiene la ruta PKCS#15 hacia la clave indicada.getKeyPrincipal(int index) Obtiene el X.500 Principal de la clave.bytegetKeyReference(int index) Obtiene la referencia de la clave indicada.toString()Methods inherited from class Record
decodeValue, getDefaultTag, getElementAt, getElementCountMethods inherited from class DecoderObject
checkTag, getBytes, getRawDerValue, setDerValueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Pkcs15PrKdf
setDerValue
-
Constructor Details
-
CeresPrKdf
public CeresPrKdf()Construye un objeto PKCS#15 PrKDF (Private Key Description File) ASN.1 específico para ciertas tarjetas FNMT CERES.
-
-
Method Details
-
getKeyCount
public int getKeyCount()Obtiene el número de claves del PrKDF.- Specified by:
getKeyCountin interfacePkcs15PrKdf- Returns:
- Número de claves del PrKDF
-
getKeyPath
Obtiene la ruta PKCS#15 hacia la clave indicada.- Parameters:
index- Índice de la clave.- Returns:
- Ruta PKCS#15 hacia la clave indicada.
-
getKeyId
public byte[] getKeyId(int index) Obtiene el identificador de la clave indicada.- Specified by:
getKeyIdin interfacePkcs15PrKdf- Parameters:
index- Índice de la clave.- Returns:
- Identificador de la clave indicada.
-
getKeyReference
public byte getKeyReference(int index) Obtiene la referencia de la clave indicada.- Specified by:
getKeyReferencein interfacePkcs15PrKdf- Parameters:
index- Índice de la clave.- Returns:
- Referencia de la clave indicada.
-
toString
-
getKeyPrincipal
Description copied from interface:Pkcs15PrKdfObtiene el X.500 Principal de la clave.- Specified by:
getKeyPrincipalin interfacePkcs15PrKdf- Parameters:
index- Índice de la clave.- Returns:
- X.500 Principal de la clave.
-