@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new NameConstraints( (GeneralSubtrees) values[0], (GeneralSubtrees) values[1], in.getEncoded()); }
@Override public Object getDecodedObject(BerInputStream in) throws IOException { // first - decoded octet string, // second - raw encoding of octet string return new Object[] {super.getDecodedObject(in), in.getEncoded()}; } }
@Override public Object getDecodedObject(BerInputStream in) { return new AuthenticatedAttributes(in.getEncoded(), (List<AttributeTypeAndValue>) in.content); } };
public Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new CertificationRequest( (CertificationRequestInfo) values[0], (AlgorithmIdentifier) values[1], ((BitString) values[2]).bytes, in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new SubjectPublicKeyInfo( (AlgorithmIdentifier) values[0], ((BitString) values[1]).bytes, ((BitString) values[1]).unusedBits, in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new CertificateList( (TBSCertList) values[0], (AlgorithmIdentifier) values[1], ((BitString) values[2]).bytes, // FIXME keep as BitString object in.getEncoded() ); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new Certificate( (TBSCertificate) values[0], (AlgorithmIdentifier) values[1], ((BitString) values[2]).bytes, // FIXME keep as BitString object in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new EDIPartyName((String) values[0], (String) values[1], in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[])in.content; return new PrivateKeyUsagePeriod((Date) values[0], (Date) values[1], in.getEncoded()); }
@Override public Object getDecodedObject(BerInputStream in) { return new GeneralNames((List<GeneralName>) in.content, in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; BigInteger requireExplicitPolicy = null; BigInteger inhibitPolicyMapping = null; if (values[0] != null) { requireExplicitPolicy = new BigInteger((byte[]) values[0]); } if (values[1] != null) { inhibitPolicyMapping = new BigInteger((byte[]) values[1]); } return new PolicyConstraints( requireExplicitPolicy, inhibitPolicyMapping, in.getEncoded()); }
@Override public Object getDecodedObject(BerInputStream in) throws IOException { return new InfoAccessSyntax((List<?>) in.content, in.getEncoded()); }
@Override public Object getDecodedObject(BerInputStream in) { return new CRLDistributionPoints((List<DistributionPoint>) in.content, in.getEncoded()); }
@Override public Object getDecodedObject(BerInputStream in) { return new CertificatePolicies((List<PolicyInformation>) in.content, in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new OtherName(ObjectIdentifier.toString((int[]) values[0]), (byte[]) values[1], in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new CertificationRequestInfo( ASN1Integer.toIntValue(values[0]), (Name) values[1], (SubjectPublicKeyInfo) values[2], (List<?>) values[3], in.getEncoded()); }
protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PrivateKeyInfo(ASN1Integer.toIntValue(values[0]), (AlgorithmIdentifier) values[1], (byte[]) values[2], (List) values[3], in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AccessDescription( ObjectIdentifier.toString((int[]) values[0]), (GeneralName) values[1], in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) throws IOException { Object[] values = (Object[]) in.content; int[] oid = (int[]) values[0]; byte[] extnValue = (byte[]) ((Object[]) values[2])[0]; byte[] rawExtnValue = (byte[]) ((Object[]) values[2])[1]; ExtensionValue decodedExtValue = null; // decode Key Usage and Basic Constraints extension values if (Arrays.equals(oid, KEY_USAGE)) { decodedExtValue = new KeyUsage(extnValue); } else if (Arrays.equals(oid, BASIC_CONSTRAINTS)) { decodedExtValue = new BasicConstraints(extnValue); } return new Extension((int[]) values[0], (Boolean) values[1], extnValue, rawExtnValue, in.getEncoded(), decodedExtValue); }
@Override protected Object getDecodedObject(BerInputStream in) throws IOException { Object[] values = (Object[]) in.content; return new TBSCertList( (values[0] == null) ? 1 : ASN1Integer.toIntValue(values[0])+1, (AlgorithmIdentifier) values[1], (Name) values[2], (Date) values[3], (Date) values[4], (List<RevokedCertificate>) values[5], (Extensions) values[6], in.getEncoded() ); }