@Override protected void getValues(Object object, Object[] values) { SubjectPublicKeyInfo spki = (SubjectPublicKeyInfo) object; values[0] = spki.algorithmID; values[1] = new BitString(spki.subjectPublicKey, spki.unusedBits); } };
@Override protected void getValues(Object object, Object[] values) { Certificate cert = (Certificate) object; values[0] = cert.tbsCertificate; values[1] = cert.signatureAlgorithm; values[2] = new BitString(cert.signatureValue, 0); } };
protected void getValues(Object object, Object[] values) { CertificationRequest certReq = (CertificationRequest) object; values[0] = certReq.info; values[1] = certReq.algId; values[2] = new BitString(certReq.signature, 0); } };
@Override protected void getValues(Object object, Object[] values) { CertificateList certificateList = (CertificateList) object; values[0] = certificateList.tbsCertList; values[1] = certificateList.signatureAlgorithm; values[2] = new BitString(certificateList.signatureValue, 0); } };
/** * Extracts BitString object from BER input stream. * * @param in - BER input stream * @return BitString object */ @Override public Object getDecodedObject(BerInputStream in) throws IOException { byte[] bytes = new byte[in.length - 1]; System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0, in.length - 1); return new BitString(bytes, in.buffer[in.contentOffset]); }
out.content = new BitString(bytes, unusedBits); out.length = bytes.length + 1;
@Override protected void getValues(Object object, Object[] values) { TBSCertificate tbs = (TBSCertificate) object; values[0] = ASN1Integer.fromIntValue(tbs.version); values[1] = tbs.serialNumber.toByteArray(); values[2] = tbs.signature; values[3] = tbs.issuer; values[4] = tbs.validity; values[5] = tbs.subject; values[6] = tbs.subjectPublicKeyInfo; if (tbs.issuerUniqueID != null) { values[7] = new BitString(tbs.issuerUniqueID); } if (tbs.subjectUniqueID != null) { values[8] = new BitString(tbs.subjectUniqueID); } values[9] = tbs.extensions; } };
protected void getValues(Object object, Object[] values) { PKIStatusInfo psi = (PKIStatusInfo) object; values[0] = BigInteger.valueOf(psi.status.getStatus()) .toByteArray(); values[1] = psi.statusString; if (psi.failInfo != null) { // set the needed bit in the bit string boolean[] failInfoBoolArray = new boolean[PKIFailureInfo .getMaxValue()]; failInfoBoolArray[psi.failInfo.getValue()] = true; values[2] = new BitString(failInfoBoolArray); } else { values[2] = null; } }
@Override protected void getValues(Object object, Object[] values) { CertificateList certificateList = (CertificateList) object; values[0] = certificateList.tbsCertList; values[1] = certificateList.signatureAlgorithm; values[2] = new BitString(certificateList.signatureValue, 0); } };
@Override protected void getValues(Object object, Object[] values) { SubjectPublicKeyInfo spki = (SubjectPublicKeyInfo) object; values[0] = spki.algorithmID; values[1] = new BitString(spki.subjectPublicKey, spki.unusedBits); } };
@Override protected void getValues(Object object, Object[] values) { Certificate cert = (Certificate) object; values[0] = cert.tbsCertificate; values[1] = cert.signatureAlgorithm; values[2] = new BitString(cert.signatureValue, 0); } };
@Override protected void getValues(Object object, Object[] values) { CertificateList certificateList = (CertificateList) object; values[0] = certificateList.tbsCertList; values[1] = certificateList.signatureAlgorithm; values[2] = new BitString(certificateList.signatureValue, 0); } };
@Override protected void getValues(Object object, Object[] values) { SubjectPublicKeyInfo spki = (SubjectPublicKeyInfo) object; values[0] = spki.algorithmID; values[1] = new BitString(spki.subjectPublicKey, spki.unusedBits); } };
protected void getValues(Object object, Object[] values) { CertificationRequest certReq = (CertificationRequest) object; values[0] = certReq.info; values[1] = certReq.algId; values[2] = new BitString(certReq.signature, 0); } };
@Override protected void getValues(Object object, Object[] values) { Certificate cert = (Certificate) object; values[0] = cert.tbsCertificate; values[1] = cert.signatureAlgorithm; values[2] = new BitString(cert.signatureValue, 0); } };
@Override protected void getValues(Object object, Object[] values) { SubjectPublicKeyInfo spki = (SubjectPublicKeyInfo) object; values[0] = spki.algorithmID; values[1] = new BitString(spki.subjectPublicKey, spki.unusedBits); } };
@Override protected void getValues(Object object, Object[] values) { CertificateList certificateList = (CertificateList) object; values[0] = certificateList.tbsCertList; values[1] = certificateList.signatureAlgorithm; values[2] = new BitString(certificateList.signatureValue, 0); } };
protected void getValues(Object object, Object[] values) { CertificationRequest certReq = (CertificationRequest) object; values[0] = certReq.info; values[1] = certReq.algId; values[2] = new BitString(certReq.signature, 0); } };
/** * Extracts BitString object from BER input stream. * * @param in - BER input stream * @return BitString object */ @Override public Object getDecodedObject(BerInputStream in) throws IOException { byte[] bytes = new byte[in.length - 1]; System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0, in.length - 1); return new BitString(bytes, in.buffer[in.contentOffset]); }
/** * Extracts BitString object from BER input stream. * * @param in - BER input stream * @return BitString object */ @Override public Object getDecodedObject(BerInputStream in) throws IOException { byte[] bytes = new byte[in.length - 1]; System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0, in.length - 1); return new BitString(bytes, in.buffer[in.contentOffset]); }