Search in sources :

Example 1 with OctectString

use of es.gob.jmulticard.asn1.der.OctectString in project jmulticard by ctt-gob-es.

the class OctectString method decodeValue.

@Override
protected void decodeValue() throws TlvException {
    final Tlv tlv = new Tlv(this.getRawDerValue());
    if (TAG_OCTECTSTRING != tlv.getTag()) {
        throw new TlvException(// $NON-NLS-1$
        "Se esperaba un TLV de tipo OctectString pero se ha encontrado uno de tipo " + HexUtils.hexify(new byte[] { tlv.getTag() }, false));
    }
    this.value = tlv.getValue();
}
Also used : TlvException(es.gob.jmulticard.asn1.TlvException) Tlv(es.gob.jmulticard.asn1.Tlv)

Aggregations

Tlv (es.gob.jmulticard.asn1.Tlv)1 TlvException (es.gob.jmulticard.asn1.TlvException)1