Package es.gob.jmulticard.asn1.der
Class ContextSpecific
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.ContextSpecific
-
- Direct Known Subclasses:
CeresCommonPrivateKeyAttributesContextSpecific
,CeresPrivateRsaKeyAttributesContextSpecific
,CeresScCommonPrivateKeyAttributesContextSpecific
,CeresScPrivateRsaKeyAttributesContextSpecific
,CeresX509CertificateAttributesContextSpecific
,CertificateIssuerContextSpecific
,CertificatesContextSpecific
,CommonPrivateKeyAttributesContextSpecific
,PathLength
,PrivateKeysContextSpecific
,PrivateRsaKeyAttributesContextSpecific
,PublicKeysContextSpecific
,SecretKeysContextSpecific
,TrustedPublicKeysContextSpecific
,X509CertificateAttributesContextSpecific
public abstract class ContextSpecific extends DecoderObject
Tipo ASN.1 específico del contexto.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends DecoderObject>
elementType
private DecoderObject
object
-
Constructor Summary
Constructors Constructor Description ContextSpecific(java.lang.Class<? extends DecoderObject> type)
Construye un tipo ASN.1 específico del contexto.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkTag(byte tag)
Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.protected void
decodeValue()
Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.protected byte
getDefaultTag()
Obtiene la etiqueta de tipo ASN.1 del objeto.protected DecoderObject
getObject()
Obtiene el objeto ASN.1.-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
getBytes, getRawDerValue, setDerValue
-
-
-
-
Field Detail
-
object
private transient DecoderObject object
-
elementType
private final transient java.lang.Class<? extends DecoderObject> elementType
-
-
Constructor Detail
-
ContextSpecific
public ContextSpecific(java.lang.Class<? extends DecoderObject> type)
Construye un tipo ASN.1 específico del contexto.- Parameters:
type
- Tipo de elemento contenido dentro de este objeto.
-
-
Method Detail
-
getObject
protected DecoderObject getObject()
Obtiene el objeto ASN.1.- Returns:
- Objeto ASN.1.
-
decodeValue
protected void decodeValue() throws Asn1Exception, TlvException
Description copied from class:DecoderObject
Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.- Specified by:
decodeValue
in classDecoderObject
- Throws:
Asn1Exception
- Si hay errores correspondientes a las estructuras ASN.1 DER.TlvException
- Si hay errores relativos a los TLV DER.
-
getDefaultTag
protected byte getDefaultTag()
Description copied from class:DecoderObject
Obtiene la etiqueta de tipo ASN.1 del objeto.- Specified by:
getDefaultTag
in classDecoderObject
- Returns:
- Etiqueta de tipo ASN.1 del objeto.
-
checkTag
public void checkTag(byte tag) throws Asn1Exception
Description copied from class:DecoderObject
Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.- Overrides:
checkTag
in classDecoderObject
- Parameters:
tag
- Etiqueta de tipo a comprobar.- Throws:
Asn1Exception
- Si las etiquetas de tipo no son compatibles.
-
-