/** * Construct a DERDecoder for the given byte array. * * @param derEncoded the DER-encoded array to decode. * @throws WSSecurityException if the given array is null. */ public DERDecoder(byte[] derEncoded) throws WSSecurityException { if (derEncoded == null) { throw new WSSecurityException( WSSecurityException.UNSUPPORTED_SECURITY_TOKEN, "noSKIHandling", new Object[] { "Invalid DER string" } ); } arr = derEncoded; reset(); }
/** * Construct a DERDecoder for the given byte array. * * @param derEncoded the DER-encoded array to decode. * @throws WSSecurityException if the given array is null. */ public DERDecoder(byte[] derEncoded) throws WSSecurityException { if (derEncoded == null) { throw new WSSecurityException( WSSecurityException.UNSUPPORTED_SECURITY_TOKEN, "noSKIHandling", new Object[] { "Invalid DER string" } ); } arr = derEncoded; reset(); }