Class CeresScPrivateKeyObject
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.custom.fnmt.ceressc.CeresScPrivateKeyObject
Tipo ASN.1 PKCS#15 PrivateKeyObject para tarjetas CERES, donde pueden encontrarse
ligeras diferencias respecto a la normativa general.
PrivateKeyObject {KeyAttributes} ::= PKCS15Object {
CommonKeyAttributes,
CommonPrivateKeyAttributesEmpty,
KeyAttributes
}
Que en el caso de claves privadas RSA (instanciando como
PrivateKeyObject {PrivateRSAKeyAttributes}) y deshaciendo PKCS15Object
en su secuencia queda la estructura:
PrivateKeyObject {PrivateRSAKeyAttributes} ::= SEQUENCE {
CommonObjectAttributes,
CommonKeyAttributes,
CommonPrivateKeyAttributesEmpty,
PrivateRsaKeyAttributes
}
-
Constructor Summary
ConstructorsConstructorDescriptionConstruye un objeto ASN.1 PKCS#15 PrivateKeyObjectCeresScPrivateKeyObject(Class<? extends DecoderObject> classAttributes, Class<? extends ContextSpecific> subclassAttributes, Class<? extends ContextSpecific> typeAttributes) Construye un tipo PrivateKeyObject ASN.1. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Obtiene el identificador de la clave privada.(package private) intObtiene la longitud de la clave privada.(package private) StringObtiene el nombre de la clave privada.Obtiene la ruta hacia la clave privada.(package private) X500PrincipalObtiene elPrincipalX.509 de la clave privada.byteObtiene la referencia de la clave.toString()Methods inherited from class Pkcs15Object
getClassAttributes, getCommonObjectAttributes, getSubclassAttributes, getTypeAttributesMethods inherited from class Sequence
decodeValue, getDefaultTag, getElementAt, getElementCountMethods inherited from class DecoderObject
checkTag, getBytes, getRawDerValue, setDerValue
-
Constructor Details
-
CeresScPrivateKeyObject
public CeresScPrivateKeyObject(Class<? extends DecoderObject> classAttributes, Class<? extends ContextSpecific> subclassAttributes, Class<? extends ContextSpecific> typeAttributes) Construye un tipo PrivateKeyObject ASN.1.- Parameters:
classAttributes- Tipo de los Atributos específicos de la clase general del objetosubclassAttributes- Tipo de los Atributos específicos de la subclase general del objetotypeAttributes- Tipo de los Atributos específicos del tipo concreto del objeto
-
CeresScPrivateKeyObject
public CeresScPrivateKeyObject()Construye un objeto ASN.1 PKCS#15 PrivateKeyObject
-
-
Method Details
-
getKeyIdentifier
public byte[] getKeyIdentifier()Obtiene el identificador de la clave privada.- Returns:
- Nombre de la clave privada
-
getKeyName
-
getKeyPath
Obtiene la ruta hacia la clave privada.- Returns:
- Ruta hacia la clave privada.
-
getKeyLength
int getKeyLength()Obtiene la longitud de la clave privada.- Returns:
- Longitud de la clave privada.
-
getKeyPrincipal
X500Principal getKeyPrincipal()Obtiene elPrincipalX.509 de la clave privada.- Returns:
PrincipalX.509 de la clave privada.
-
toString
-
getKeyReference
public byte getKeyReference()Obtiene la referencia de la clave.- Returns:
- Referencia de la clave.
-