Class CeresPrivateKeyObject
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.Sequence
-
- es.gob.jmulticard.asn1.der.pkcs15.Pkcs15Object
-
- es.gob.jmulticard.asn1.der.pkcs15.PrivateKeyObject
-
- es.gob.jmulticard.asn1.custom.fnmt.ceres.CeresPrivateKeyObject
-
public final class CeresPrivateKeyObject extends PrivateKeyObject
Tipo ASN.1 PKCS#15 PrivateKeyObject específico para ciertas tarjetas FNMT CERES.PrivateKeyObject {KeyAttributes} ::= PKCS15Object { CommonKeyAttributes, CommonPrivateKeyAttributes, KeyAttributes }
Que en el caso de claves privadas RSA (instanciando comoPrivateKeyObject {PrivateRSAKeyAttributes}
) y deshaciendoPKCS15Object
en su secuencia queda la estructura:PrivateKeyObject {PrivateRSAKeyAttributes} ::= SEQUENCE { CommonObjectAttributes, CommonKeyAttributes, CommonPrivateKeyAttributes, PrivateRsaKeyAttributes }
-
-
Constructor Summary
Constructors Constructor Description CeresPrivateKeyObject()
Construye un objeto ASN.1 PKCS#15 PrivateKeyObject específico para ciertas tarjetas FNMT CERES.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getKeyIdentifier()
Obtiene el identificador de la clave privada.java.lang.String
getKeyPath()
Obtiene la ruta hacia la clave privada.byte
getKeyReference()
Obtiene la referencia de la clave.java.lang.String
toString()
-
Methods inherited from class es.gob.jmulticard.asn1.der.pkcs15.Pkcs15Object
getClassAttributes, getCommonObjectAttributes, getSubclassAttributes, getTypeAttributes
-
Methods inherited from class es.gob.jmulticard.asn1.der.Sequence
decodeValue, getDefaultTag, getElementAt, getElementCount
-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
checkTag, getBytes, getRawDerValue, setDerValue
-
-
-
-
Method Detail
-
getKeyIdentifier
public byte[] getKeyIdentifier()
Description copied from class:PrivateKeyObject
Obtiene el identificador de la clave privada.- Overrides:
getKeyIdentifier
in classPrivateKeyObject
- Returns:
- Nombre de la clave privada
-
getKeyReference
public byte getKeyReference()
Description copied from class:PrivateKeyObject
Obtiene la referencia de la clave.- Overrides:
getKeyReference
in classPrivateKeyObject
- Returns:
- Referencia de la clave.
-
getKeyPath
public java.lang.String getKeyPath()
Description copied from class:PrivateKeyObject
Obtiene la ruta hacia la clave privada.- Overrides:
getKeyPath
in classPrivateKeyObject
- Returns:
- Ruta hacia la clave privada.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classPrivateKeyObject
-
-