Search in sources :

Example 1 with Asn1Utf8String

use of org.apache.kerby.asn1.type.Asn1Utf8String in project webauthn4j by webauthn4j.

the class TPMAttestationStatementValidator method decodeAttr.

String decodeAttr(byte[] attr) throws IOException {
    if (attr == null) {
        return null;
    } else {
        Asn1Utf8String attrAsn1Utf8String = new Asn1Utf8String();
        attrAsn1Utf8String.decode(attr);
        return attrAsn1Utf8String.getValue();
    }
}
Also used : Asn1Utf8String(org.apache.kerby.asn1.type.Asn1Utf8String)

Aggregations

Asn1Utf8String (org.apache.kerby.asn1.type.Asn1Utf8String)1