Home
last modified time | relevance | path

Searched refs:ASN1Sequence (Results 1 – 25 of 129) sorted by relevance

123456

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1Sequence.java54 public abstract class ASN1Sequence class
66 public static ASN1Sequence getInstance( in getInstance()
69 if (obj == null || obj instanceof ASN1Sequence) in getInstance()
71 return (ASN1Sequence)obj; in getInstance()
75 return ASN1Sequence.getInstance(((ASN1SequenceParser)obj).toASN1Primitive()); in getInstance()
81 return ASN1Sequence.getInstance(fromByteArray((byte[])obj)); in getInstance()
92 if (primitive instanceof ASN1Sequence) in getInstance()
94 return (ASN1Sequence)primitive; in getInstance()
118 public static ASN1Sequence getInstance( in getInstance()
129 return ASN1Sequence.getInstance(obj.getObject().toASN1Primitive()); in getInstance()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/
DAuthorityKeyIdentifierStructure.java11 import org.bouncycastle.asn1.ASN1Sequence;
38 super((ASN1Sequence)X509ExtensionUtil.fromExtensionValue(encodedValue)); in AuthorityKeyIdentifierStructure()
50 super((ASN1Sequence)extension.getParsedValue()); in AuthorityKeyIdentifierStructure()
61 super((ASN1Sequence)extension.getParsedValue()); in AuthorityKeyIdentifierStructure()
64 private static ASN1Sequence fromCertificate( in fromCertificate()
74 … (ASN1Sequence)new ASN1InputStream(certificate.getPublicKey().getEncoded()).readObject()); in fromCertificate()
76 return (ASN1Sequence)new AuthorityKeyIdentifier( in fromCertificate()
89 return (ASN1Sequence)new AuthorityKeyIdentifier( in fromCertificate()
95 … (ASN1Sequence)new ASN1InputStream(certificate.getPublicKey().getEncoded()).readObject()); in fromCertificate()
97 return (ASN1Sequence)new AuthorityKeyIdentifier( in fromCertificate()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DPolicyInformation.java7 import org.bouncycastle.asn1.ASN1Sequence;
14 private ASN1Sequence policyQualifiers;
17 ASN1Sequence seq) in PolicyInformation()
29 policyQualifiers = ASN1Sequence.getInstance(seq.getObjectAt(1)); in PolicyInformation()
41 ASN1Sequence policyQualifiers) in PolicyInformation()
55 return new PolicyInformation(ASN1Sequence.getInstance(obj)); in getInstance()
63 public ASN1Sequence getPolicyQualifiers() in getPolicyQualifiers()
DTBSCertificate.java6 import org.bouncycastle.asn1.ASN1Sequence;
35 ASN1Sequence seq;
52 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
64 return new TBSCertificate(ASN1Sequence.getInstance(obj)); in getInstance()
71 ASN1Sequence seq) in TBSCertificate()
98 ASN1Sequence dates = (ASN1Sequence)seq.getObjectAt(seqStart + 4); in TBSCertificate()
123 extensions = Extensions.getInstance(ASN1Sequence.getInstance(extra, true)); in TBSCertificate()
DTBSCertList.java10 import org.bouncycastle.asn1.ASN1Sequence;
44 ASN1Sequence seq;
49 ASN1Sequence seq) in CRLEntry()
67 return new CRLEntry(ASN1Sequence.getInstance(o)); in getInstance()
144 ASN1Sequence revokedCertificates;
151 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
163 return new TBSCertList(ASN1Sequence.getInstance(obj)); in getInstance()
170 ASN1Sequence seq) in TBSCertList()
203 revokedCertificates = ASN1Sequence.getInstance(seq.getObjectAt(seqPos++)); in TBSCertList()
209 …crlExtensions = Extensions.getInstance(ASN1Sequence.getInstance((ASN1TaggedObject)seq.getObjectAt(… in TBSCertList()
DAttributeCertificateInfo.java8 import org.bouncycastle.asn1.ASN1Sequence;
22 private ASN1Sequence attributes;
30 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
42 return new AttributeCertificateInfo(ASN1Sequence.getInstance(obj)); in getInstance()
49 ASN1Sequence seq) in AttributeCertificateInfo()
73 this.attributes = ASN1Sequence.getInstance(seq.getObjectAt(start + 5)); in AttributeCertificateInfo()
83 else if (obj instanceof ASN1Sequence || obj instanceof Extensions) in AttributeCertificateInfo()
120 public ASN1Sequence getAttributes() in getAttributes()
DNameConstraints.java8 import org.bouncycastle.asn1.ASN1Sequence;
26 return new NameConstraints(ASN1Sequence.getInstance(obj)); in getInstance()
32 private NameConstraints(ASN1Sequence seq) in NameConstraints()
41 permitted = createArray(ASN1Sequence.getInstance(o, false)); in NameConstraints()
44 excluded = createArray(ASN1Sequence.getInstance(o, false)); in NameConstraints()
76 private GeneralSubtree[] createArray(ASN1Sequence subtree) in createArray()
DTBSCertificateStructure.java6 import org.bouncycastle.asn1.ASN1Sequence;
37 ASN1Sequence seq;
54 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
66 return new TBSCertificateStructure(ASN1Sequence.getInstance(obj)); in getInstance()
73 ASN1Sequence seq) in TBSCertificateStructure()
100 ASN1Sequence dates = (ASN1Sequence)seq.getObjectAt(seqStart + 4); in TBSCertificateStructure()
DRSAPublicKeyStructure.java10 import org.bouncycastle.asn1.ASN1Sequence;
27 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
38 if(obj instanceof ASN1Sequence) in getInstance()
40 return new RSAPublicKeyStructure((ASN1Sequence)obj); in getInstance()
55 ASN1Sequence seq) in RSAPublicKeyStructure()
DCertificate.java6 import org.bouncycastle.asn1.ASN1Sequence;
24 ASN1Sequence seq;
33 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
45 return new Certificate(ASN1Sequence.getInstance(obj)); in getInstance()
52 ASN1Sequence seq) in Certificate()
DX509CertificateStructure.java6 import org.bouncycastle.asn1.ASN1Sequence;
27 ASN1Sequence seq;
36 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
48 return new X509CertificateStructure(ASN1Sequence.getInstance(obj)); in getInstance()
55 ASN1Sequence seq) in X509CertificateStructure()
DCRLDistPoint.java6 import org.bouncycastle.asn1.ASN1Sequence;
13 ASN1Sequence seq = null;
19 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
31 return new CRLDistPoint(ASN1Sequence.getInstance(obj)); in getInstance()
38 ASN1Sequence seq) in CRLDistPoint()
DX509Extensions.java13 import org.bouncycastle.asn1.ASN1Sequence;
216 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
227 if (obj instanceof ASN1Sequence) in getInstance()
229 return new X509Extensions((ASN1Sequence)obj); in getInstance()
234 return new X509Extensions((ASN1Sequence)((Extensions)obj).toASN1Primitive()); in getInstance()
251 ASN1Sequence seq) in X509Extensions()
257 ASN1Sequence s = ASN1Sequence.getInstance(e.nextElement()); in X509Extensions()
DDigestInfo.java9 import org.bouncycastle.asn1.ASN1Sequence;
32 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
44 return new DigestInfo(ASN1Sequence.getInstance(obj)); in getInstance()
59 ASN1Sequence obj) in DigestInfo()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DSequenceTest.java32 import org.apache.harmony.security.asn1.ASN1Sequence;
55 private static ASN1Sequence sequence;
72 sequence = new ASN1Sequence(new ASN1Type[] { ASN1Boolean.getInstance(), in setUp()
171 ASN1Sequence seqVerify = new ASN1Sequence(new ASN1Type[] { in testVerify()
200 ASN1Sequence s = new ASN1Sequence(new ASN1Type[] { ASN1Boolean in testEncodeDefault()
219 s = new ASN1Sequence(new ASN1Type[] { ASN1Integer.getInstance() }) { in testEncodeDefault()
241 ASN1Sequence s = new ASN1Sequence(new ASN1Type[] { ASN1Boolean in testEncodeOptional()
258 s = new ASN1Sequence(new ASN1Type[] { ASN1Boolean.getInstance() }) { in testEncodeOptional()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DPBES2Algorithms.java8 import org.bouncycastle.asn1.ASN1Sequence;
23 ASN1Sequence obj) in PBES2Algorithms()
31 ASN1Sequence seq = (ASN1Sequence)e.nextElement(); in PBES2Algorithms()
35 ASN1Sequence funcSeq = (ASN1Sequence)e.nextElement(); in PBES2Algorithms()
DRSAPrivateKeyStructure.java10 import org.bouncycastle.asn1.ASN1Sequence;
29 private ASN1Sequence otherPrimeInfos = null;
35 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
45 else if (obj instanceof ASN1Sequence) in getInstance()
47 return new RSAPrivateKeyStructure((ASN1Sequence)obj); in getInstance()
75 ASN1Sequence seq) in RSAPrivateKeyStructure()
97 otherPrimeInfos = (ASN1Sequence)e.nextElement(); in RSAPrivateKeyStructure()
DPBES2Parameters.java9 import org.bouncycastle.asn1.ASN1Sequence;
28 return new PBES2Parameters(ASN1Sequence.getInstance(obj)); in getInstance()
41 ASN1Sequence obj) in PBES2Parameters()
44ASN1Sequence funcSeq = ASN1Sequence.getInstance(((ASN1Encodable)e.nextElement()).toASN1Primitive(… in PBES2Parameters()
DEncryptedData.java10 import org.bouncycastle.asn1.ASN1Sequence;
37 ASN1Sequence data;
51 return new EncryptedData(ASN1Sequence.getInstance(obj)); in getInstance()
58 ASN1Sequence seq) in EncryptedData()
67 this.data = ASN1Sequence.getInstance(seq.getObjectAt(1)); in EncryptedData()
DRSAPrivateKey.java10 import org.bouncycastle.asn1.ASN1Sequence;
26 private ASN1Sequence otherPrimeInfos = null;
32 return getInstance(ASN1Sequence.getInstance(obj, explicit)); in getInstance()
45 return new RSAPrivateKey(ASN1Sequence.getInstance(obj)); in getInstance()
73 ASN1Sequence seq) in RSAPrivateKey()
95 otherPrimeInfos = (ASN1Sequence)e.nextElement(); in RSAPrivateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DCertificateFactory.java20 import org.bouncycastle.asn1.ASN1Sequence;
53 ASN1Sequence seq = (ASN1Sequence)dIn.readObject(); in readDERCertificate()
60 sData = SignedData.getInstance(ASN1Sequence.getInstance( in readDERCertificate()
80 if (obj instanceof ASN1Sequence) in getCertificate()
95 ASN1Sequence seq = PEM_CERT_PARSER.readPEMObject(in); in readPEMCertificate()
116 ASN1Sequence seq = PEM_CRL_PARSER.readPEMObject(in); in readPEMCRL()
131 ASN1Sequence seq = (ASN1Sequence)aIn.readObject(); in readDERCRL()
138 sCrlData = SignedData.getInstance(ASN1Sequence.getInstance( in readDERCRL()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/
DX509Principal.java10 import org.bouncycastle.asn1.ASN1Sequence;
28 private static ASN1Sequence readSequence( in readSequence()
34 return ASN1Sequence.getInstance(aIn.readObject()); in readSequence()
58 super((ASN1Sequence)name.toASN1Primitive()); in X509Principal()
67 super((ASN1Sequence)name.toASN1Primitive()); in X509Principal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/
DX500Name.java10 import org.bouncycastle.asn1.ASN1Sequence;
59 return getInstance(ASN1Sequence.getInstance(obj, true)); in getInstance()
71 return new X500Name(ASN1Sequence.getInstance(obj)); in getInstance()
87 return new X500Name(style, ASN1Sequence.getInstance(obj)); in getInstance()
99 ASN1Sequence seq) in X500Name()
106 ASN1Sequence seq) in X500Name()
275 if (!(obj instanceof X500Name || obj instanceof ASN1Sequence)) in equals()
289 …return style.areEqual(this, new X500Name(ASN1Sequence.getInstance(((ASN1Encodable)obj).toASN1Primi… in equals()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
DNetscapeCertRequest.java23 import org.bouncycastle.asn1.ASN1Sequence;
55 private static ASN1Sequence getReq( in getReq()
61 return ASN1Sequence.getInstance(aIn.readObject()); in getReq()
71 public NetscapeCertRequest (ASN1Sequence spkac) in NetscapeCertRequest()
89 sigAlg = new AlgorithmIdentifier((ASN1Sequence)spkac in NetscapeCertRequest()
99 ASN1Sequence pkac = (ASN1Sequence)spkac.getObjectAt(0); in NetscapeCertRequest()
114 (ASN1Sequence)pkac.getObjectAt(0)); in NetscapeCertRequest()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9Curve.java11 import org.bouncycastle.asn1.ASN1Sequence;
48 ASN1Sequence seq) in X9Curve()
63 ASN1Sequence parameters = ASN1Sequence.getInstance(fieldID.getParameters()); in X9Curve()
81 ASN1Sequence pentanomial = ASN1Sequence.getInstance(parameters.getObjectAt(2)); in X9Curve()

123456