public final void verify(InputStream in) throws IOException { DerInputStream decoder = new DerInputStream(in); decoder.setVerify(); decode(decoder); }
/** * Creates new <code>Name</code> instance from its DER encoding * * @param encoding - ASN.1 DER encoding * @throws IOException - if encoding is wrong */ public Name(byte[] encoding) throws IOException { DerInputStream in = new DerInputStream(encoding); if (in.getEndOffset() != encoding.length) { throw new IOException("Wrong content length"); } ASN1.decode(in); this.rdn = (List<List<AttributeTypeAndValue>>) in.content; }
public final Object decode(byte[] encoded, int offset, int encodingLen) throws IOException { return decode(new DerInputStream(encoded, offset, encodingLen)); }
public final Object decode(byte[] encoded) throws IOException { return decode(new DerInputStream(encoded)); }
public final void verify(byte[] encoded) throws IOException { DerInputStream decoder = new DerInputStream(encoded); decoder.setVerify(); decode(decoder); }
public final Object decode(InputStream in) throws IOException { return decode(new DerInputStream(in)); }
/** * Creates new <code>Name</code> instance from its DER encoding * * @param encoding - ASN.1 DER encoding * @throws IOException - if encoding is wrong */ public Name(byte[] encoding) throws IOException { DerInputStream in = new DerInputStream(encoding); if (in.getEndOffset() != encoding.length) { throw new IOException("Wrong content length"); } ASN1.decode(in); this.rdn = (List<List<AttributeTypeAndValue>>) in.content; }
public final void verify(InputStream in) throws IOException { DerInputStream decoder = new DerInputStream(in); decoder.setVerify(); decode(decoder); }
public AttributeValue(String hexString, byte[] encoded) { wasEncoded = true; this.hexString = hexString; this.encoded = encoded; try { DerInputStream in = new DerInputStream(encoded); tag = in.tag; if (DirectoryString.ASN1.checkTag(tag)) { // has string representation this.rawString = (String) DirectoryString.ASN1.decode(in); this.escapedString = makeEscaped(rawString); } else { this.rawString = hexString; this.escapedString = hexString; } } catch (IOException e) { IllegalArgumentException iae = new IllegalArgumentException(); //FIXME message iae.initCause(e); throw iae; } }
/** * Creates new <code>Name</code> instance from its DER encoding * * @param encoding - ASN.1 DER encoding * @throws IOException - if encoding is wrong */ public Name(byte[] encoding) throws IOException { DerInputStream in = new DerInputStream(encoding); if (in.getEndOffset() != encoding.length) { throw new IOException("Wrong content length"); } ASN1.decode(in); this.rdn = (List<List<AttributeTypeAndValue>>) in.content; }
public final void verify(InputStream in) throws IOException { DerInputStream decoder = new DerInputStream(in); decoder.setVerify(); decode(decoder); }
public final Object decode(byte[] encoded, int offset, int encodingLen) throws IOException { return decode(new DerInputStream(encoded, offset, encodingLen)); }
/** * Creates new <code>Name</code> instance from its DER encoding * * @param encoding - ASN.1 DER encoding * @throws IOException - if encoding is wrong */ public Name(byte[] encoding) throws IOException { DerInputStream in = new DerInputStream(encoding); if (in.getEndOffset() != encoding.length) { throw new IOException("Wrong content length"); } ASN1.decode(in); this.rdn = (List<List<AttributeTypeAndValue>>) in.content; }
public final void verify(byte[] encoded) throws IOException { DerInputStream decoder = new DerInputStream(encoded); decoder.setVerify(); decode(decoder); }
public final Object decode(byte[] encoded, int offset, int encodingLen) throws IOException { return decode(new DerInputStream(encoded, offset, encodingLen)); }
/** * Creates new <code>Name</code> instance from its DER encoding * * @param encoding - ASN.1 DER encoding * @throws IOException - if encoding is wrong */ public Name(byte[] encoding) throws IOException { DerInputStream in = new DerInputStream(encoding); if (in.getEndOffset() != encoding.length) { throw new IOException("Wrong content length"); } ASN1.decode(in); this.rdn = (List<List<AttributeTypeAndValue>>) in.content; }
public final void verify(InputStream in) throws IOException { DerInputStream decoder = new DerInputStream(in); decoder.setVerify(); decode(decoder); }
public final Object decode(byte[] encoded, int offset, int encodingLen) throws IOException { return decode(new DerInputStream(encoded, offset, encodingLen)); }
/** * Creates new <code>Name</code> instance from its DER encoding * * @param encoding - ASN.1 DER encoding * @throws IOException - if encoding is wrong */ public Name(byte[] encoding) throws IOException { DerInputStream in = new DerInputStream(encoding); if (in.getEndOffset() != encoding.length) { throw new IOException("Wrong content length"); } ASN1.decode(in); this.rdn = (List<List<AttributeTypeAndValue>>) in.content; }
public final void verify(byte[] encoded) throws IOException { DerInputStream decoder = new DerInputStream(encoded); decoder.setVerify(); decode(decoder); }