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
Tipo ASN.1 específico del contexto.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<? extends DecoderObject> private DecoderObject -
Constructor Summary
ConstructorsConstructorDescriptionContextSpecific(Class<? extends DecoderObject> type) Construye un tipo ASN.1 específico del contexto. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckTag(byte tag) Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.protected voidDecodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.protected byteObtiene la etiqueta de tipo ASN.1 del objeto.protected DecoderObjectObtiene el objeto ASN.1.Methods inherited from class DecoderObject
getBytes, getRawDerValue, setDerValue
-
Field Details
-
object
-
elementType
-
-
Constructor Details
-
ContextSpecific
Construye un tipo ASN.1 específico del contexto.- Parameters:
type- Tipo de elemento contenido dentro de este objeto.
-
-
Method Details
-
getObject
-
decodeValue
Description copied from class:DecoderObjectDecodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.- Specified by:
decodeValuein 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:DecoderObjectObtiene la etiqueta de tipo ASN.1 del objeto.- Specified by:
getDefaultTagin classDecoderObject- Returns:
- Etiqueta de tipo ASN.1 del objeto.
-
checkTag
Description copied from class:DecoderObjectComprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.- Overrides:
checkTagin classDecoderObject- Parameters:
tag- Etiqueta de tipo a comprobar.- Throws:
Asn1Exception- Si las etiquetas de tipo no son compatibles.
-