/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
bytes = (byte[]) ASN1OctetString.getInstance().decode(bytes); BigInteger crlNumber = new BigInteger((byte[]) ASN1Integer.getInstance().decode(bytes)); if ((minCRL != null) && (crlNumber.compareTo(minCRL) < 0)) { return false;
/** * Creates object from DSAPrivateKeySpec. * * @param keySpec - a DSAPrivateKeySpec object */ public DSAPrivateKeyImpl(DSAPrivateKeySpec keySpec) { super("DSA"); PrivateKeyInfo pki; g = keySpec.getG(); p = keySpec.getP(); q = keySpec.getQ(); ThreeIntegerSequence threeInts = new ThreeIntegerSequence(p .toByteArray(), q.toByteArray(), g.toByteArray()); AlgorithmIdentifier ai = new AlgorithmIdentifier(AlgNameMapper .map2OID("DSA"), threeInts.getEncoded()); x = keySpec.getX(); pki = new PrivateKeyInfo(0, ai, ASN1Integer.getInstance().encode( x.toByteArray()), null); setEncoding(pki.getEncoded()); params = new DSAParameterSpec(p, q, g); }
/** * Creates object from DSAPublicKeySpec. * * @param keySpec - a DSAPublicKeySpec object */ public DSAPublicKeyImpl(DSAPublicKeySpec keySpec) { super("DSA"); SubjectPublicKeyInfo spki; p = keySpec.getP(); q = keySpec.getQ(); g = keySpec.getG(); ThreeIntegerSequence threeInts = new ThreeIntegerSequence(p .toByteArray(), q.toByteArray(), g.toByteArray()); AlgorithmIdentifier ai = new AlgorithmIdentifier(AlgNameMapper .map2OID("DSA"), threeInts.getEncoded()); y = keySpec.getY(); spki = new SubjectPublicKeyInfo(ai, ASN1Integer.getInstance().encode( y.toByteArray())); setEncoding(spki.getEncoded()); params = (DSAParams) (new DSAParameterSpec(p, q, g)); }
y = new BigInteger((byte[]) ASN1Integer.getInstance().decode( subjectPublicKeyInfo.getSubjectPublicKey())); } catch (IOException e) {
x = new BigInteger((byte[]) ASN1Integer.getInstance().decode( privateKeyInfo.getPrivateKey())); } catch (IOException e) {
/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Creates an object on the base of its encoded form. */ public InhibitAnyPolicy(byte[] encoding) throws IOException { super(encoding); this.skipCerts = new BigInteger((byte[]) ASN1Integer.getInstance().decode(encoding)).intValue(); }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
/** * Returns ASN.1 encoded form of the object. */ @Override public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance() .encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }
/** * Creates object from DSAPrivateKeySpec. * * @param keySpec - a DSAPrivateKeySpec object */ public DSAPrivateKeyImpl(DSAPrivateKeySpec keySpec) { super("DSA"); PrivateKeyInfo pki; g = keySpec.getG(); p = keySpec.getP(); q = keySpec.getQ(); ThreeIntegerSequence threeInts = new ThreeIntegerSequence(p .toByteArray(), q.toByteArray(), g.toByteArray()); AlgorithmIdentifier ai = new AlgorithmIdentifier(AlgNameMapper .map2OID("DSA"), threeInts.getEncoded()); x = keySpec.getX(); pki = new PrivateKeyInfo(0, ai, ASN1Integer.getInstance().encode( x.toByteArray()), null); setEncoding(pki.getEncoded()); params = new DSAParameterSpec(p, q, g); }