Class CommonPrivateKeyAttributesContextSpecific
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.ContextSpecific
-
- es.gob.jmulticard.asn1.der.pkcs15.CommonPrivateKeyAttributesContextSpecific
-
public final class CommonPrivateKeyAttributesContextSpecific extends ContextSpecific
Objeto ASN.1 de contexto específico del CommonPrivateKeyAttributes.CommonPrivateKeyAttributes ::= SEQUENCE { name Name OPTIONAL, keyIdentifiers [0] SEQUENCE OF CredentialIdentifier {{KeyIdentifiers}} OPTIONAL, generalName [1] GeneralNames OPTIONAL, ... -- For future extensions }
-
-
Field Summary
Fields Modifier and Type Field Description private static byteTAG
-
Constructor Summary
Constructors Constructor Description CommonPrivateKeyAttributesContextSpecific()Construye un objeto ASN.1 de contexto específico del CommonPrivateKeyAttributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckTag(byte tag)Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.javax.security.auth.x500.X500PrincipalgetKeyPrincipal()Obtiene elPrincipalX.509 de la clave privada.java.lang.StringtoString()-
Methods inherited from class es.gob.jmulticard.asn1.der.ContextSpecific
decodeValue, getDefaultTag, getObject
-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
getBytes, getRawDerValue, setDerValue
-
-
-
-
Field Detail
-
TAG
private static final byte TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkTag
public void checkTag(byte tag) throws Asn1ExceptionDescription copied from class:DecoderObjectComprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.- Overrides:
checkTagin classContextSpecific- Parameters:
tag- Etiqueta de tipo a comprobar.- Throws:
Asn1Exception- Si las etiquetas de tipo no son compatibles.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getKeyPrincipal
public javax.security.auth.x500.X500Principal getKeyPrincipal()
Obtiene elPrincipalX.509 de la clave privada.- Returns:
PrincipalX.509 de la clave privada.
-
-