/libcore/luni/src/test/java/tests/security/cert/ |
D | PolicyQualifierInfoTest.java | 77 byte[] encoding = getDerEncoding(); in testPolicyQualifierInfo02() 79 encoding[1] = (byte)0x27; in testPolicyQualifierInfo02() 83 new PolicyQualifierInfo(encoding); in testPolicyQualifierInfo02() 90 encoding = getDerEncoding(); in testPolicyQualifierInfo02() 93 encoding[2] = (byte)13; in testPolicyQualifierInfo02() 96 new PolicyQualifierInfo(encoding); in testPolicyQualifierInfo02() 111 byte[] encoding = getDerEncoding(); in testPolicyQualifierInfo03() 113 new PolicyQualifierInfo(encoding); in testPolicyQualifierInfo03() 124 byte[] encoding = getDerEncoding(); in testPolicyQualifierInfo04() 125 byte[] encodingCopy = encoding.clone(); in testPolicyQualifierInfo04() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/ |
D | PublicKeyImpl.java | 35 private byte[] encoding; field in PublicKeyImpl 56 byte[] result = new byte[encoding.length]; in getEncoded() 57 System.arraycopy(encoding, 0, result, 0, encoding.length); in getEncoded() 67 public void setEncoding(byte[] encoding) { in setEncoding() argument 68 this.encoding = new byte[encoding.length]; in setEncoding() 69 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length); in setEncoding()
|
D | PrivateKeyImpl.java | 35 private byte[] encoding; field in PrivateKeyImpl 51 byte[] toReturn = new byte[encoding.length]; in getEncoded() 52 System.arraycopy(encoding, 0, toReturn, 0, encoding.length); in getEncoded() 61 public void setEncoding(byte[] encoding) { in setEncoding() argument 62 this.encoding = new byte[encoding.length]; in setEncoding() 63 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length); in setEncoding()
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | ExtensionValue.java | 28 protected byte[] encoding; field in ExtensionValue 34 public ExtensionValue(byte[] encoding) { in ExtensionValue() argument 35 this.encoding = encoding; in ExtensionValue() 40 return encoding; in getEncoded() 45 if (encoding == null) { in dumpValue() 46 encoding = getEncoded(); in dumpValue() 48 if (encoding == null) { in dumpValue() 51 sb.append(Array.toString(encoding, prefix)); in dumpValue()
|
D | CertificatePolicies.java | 49 private byte[] encoding; field in CertificatePolicies 56 public static CertificatePolicies decode(byte[] encoding) throws IOException { in decode() argument 57 CertificatePolicies cps = ((CertificatePolicies) ASN1.decode(encoding)); in decode() 58 cps.encoding = encoding; in decode() 62 private CertificatePolicies(List<PolicyInformation> policyInformations, byte[] encoding) { in CertificatePolicies() argument 64 this.encoding = encoding; in CertificatePolicies() 75 encoding = null; in addPolicyInformation() 87 if (encoding == null) { in getEncoded() 88 encoding = ASN1.encode(this); in getEncoded() 90 return encoding; in getEncoded()
|
D | CRLDistributionPoints.java | 69 private byte[] encoding; field in CRLDistributionPoints 71 private CRLDistributionPoints(List<DistributionPoint> distributionPoints, byte[] encoding) { in CRLDistributionPoints() argument 76 this.encoding = encoding; in CRLDistributionPoints() 80 if (encoding == null) { in getEncoded() 81 encoding = ASN1.encode(this); in getEncoded() 83 return encoding; in getEncoded() 86 public static CRLDistributionPoints decode(byte[] encoding) throws IOException { in decode() argument 87 return (CRLDistributionPoints) ASN1.decode(encoding); in decode()
|
D | SubjectKeyIdentifier.java | 53 public static SubjectKeyIdentifier decode(byte[] encoding) in decode() argument 56 ASN1OctetString.getInstance().decode(encoding)); in decode() 57 res.encoding = encoding; in decode() 69 if (encoding == null) { in getEncoded() 70 encoding = ASN1OctetString.getInstance().encode(keyIdentifier); in getEncoded() 72 return encoding; in getEncoded()
|
D | InhibitAnyPolicy.java | 44 public InhibitAnyPolicy(byte[] encoding) throws IOException { in InhibitAnyPolicy() argument 45 super(encoding); in InhibitAnyPolicy() 47 ASN1Integer.getInstance().decode(encoding)).intValue(); in InhibitAnyPolicy() 54 if (encoding == null) { in getEncoded() 55 encoding = ASN1Integer.getInstance() in getEncoded() 58 return encoding; in getEncoded()
|
D | AlternativeName.java | 46 public AlternativeName(boolean which, byte[] encoding) throws IOException { in AlternativeName() argument 47 super(encoding); in AlternativeName() 49 this.alternativeNames = (GeneralNames) GeneralNames.ASN1.decode(encoding); in AlternativeName() 56 if (encoding == null) { in getEncoded() 57 encoding = GeneralNames.ASN1.encode(alternativeNames); in getEncoded() 59 return encoding; in getEncoded()
|
D | CRLNumber.java | 43 public CRLNumber(byte[] encoding) throws IOException { in CRLNumber() argument 44 super(encoding); in CRLNumber() 45 number = new BigInteger((byte[]) ASN1.decode(encoding)); in CRLNumber() 59 if (encoding == null) { in getEncoded() 60 encoding = ASN1.encode(number.toByteArray()); in getEncoded() 62 return encoding; in getEncoded()
|
D | PolicyConstraints.java | 62 private byte[] encoding; field in PolicyConstraints 70 public PolicyConstraints(byte[] encoding) throws IOException { in PolicyConstraints() argument 71 super(encoding); in PolicyConstraints() 72 PolicyConstraints pc = (PolicyConstraints) ASN1.decode(encoding); in PolicyConstraints() 78 BigInteger inhibitPolicyMapping, byte[] encoding) { in PolicyConstraints() argument 80 this.encoding = encoding; in PolicyConstraints() 87 if (encoding == null) { in getEncoded() 88 encoding = ASN1.encode(this); in getEncoded() 90 return encoding; in getEncoded()
|
D | InvalidityDate.java | 41 public InvalidityDate(byte[] encoding) throws IOException { in InvalidityDate() argument 42 super(encoding); in InvalidityDate() 43 date = (Date) ASN1.decode(encoding); in InvalidityDate() 64 if (encoding == null) { in getEncoded() 65 encoding = ASN1.encode(date); in getEncoded() 67 return encoding; in getEncoded()
|
D | EDIPartyName.java | 60 private byte[] encoding; field in EDIPartyName 62 private EDIPartyName(String nameAssigner, String partyName, byte[] encoding) { in EDIPartyName() argument 65 this.encoding = encoding; in EDIPartyName() 72 if (encoding == null) { in getEncoded() 73 encoding = ASN1.encode(this); in getEncoded() 75 return encoding; in getEncoded()
|
D | KeyUsage.java | 67 public KeyUsage(byte[] encoding) throws IOException { in KeyUsage() argument 68 super(encoding); in KeyUsage() 69 this.keyUsage = (boolean[]) ASN1.decode(encoding); in KeyUsage() 77 if (encoding == null) { in getEncoded() 78 encoding = ASN1.encode(keyUsage); in getEncoded() 80 return encoding; in getEncoded()
|
D | InfoAccessSyntax.java | 50 private InfoAccessSyntax(List<?> accessDescriptions, byte[] encoding) throws IOException { in InfoAccessSyntax() argument 55 this.encoding = encoding; in InfoAccessSyntax() 62 if (encoding == null) { in getEncoded() 63 encoding = ASN1.encode(this); in getEncoded() 65 return encoding; in getEncoded() 68 public static InfoAccessSyntax decode(byte[] encoding) throws IOException { in decode() argument 69 return ((InfoAccessSyntax) ASN1.decode(encoding)); in decode()
|
D | PrivateKeyUsagePeriod.java | 53 private byte[] encoding; field in PrivateKeyUsagePeriod 59 private PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate, byte[] encoding) { in PrivateKeyUsagePeriod() argument 62 this.encoding = encoding; in PrivateKeyUsagePeriod() 83 if (encoding == null) { in getEncoded() 84 encoding = ASN1.encode(this); in getEncoded() 86 return encoding; in getEncoded()
|
D | AccessDescription.java | 46 private byte[] encoding; field in AccessDescription 48 private AccessDescription(String accessMethod, GeneralName accessLocation, byte[] encoding) { in AccessDescription() argument 51 this.encoding = encoding; in AccessDescription() 58 if (encoding == null) { in getEncoded() 59 encoding = ASN1.encode(this); in getEncoded() 61 return encoding; in getEncoded()
|
D | OtherName.java | 54 private byte[] encoding; field in OtherName 60 private OtherName(String typeID, byte[] value, byte[] encoding) { in OtherName() argument 63 this.encoding = encoding; in OtherName() 77 if (encoding == null) { in getEncoded() 78 encoding = ASN1.encode(this); in getEncoded() 80 return encoding; in getEncoded()
|
D | GeneralNames.java | 53 private byte[] encoding; field in GeneralNames 63 private GeneralNames(List<GeneralName> generalNames, byte[] encoding) { in GeneralNames() argument 65 this.encoding = encoding; in GeneralNames() 104 encoding = null; in addName() 115 if (encoding == null) { in getEncoded() 116 encoding = ASN1.encode(this); in getEncoded() 118 return encoding; in getEncoded()
|
D | ReasonCode.java | 63 public ReasonCode(byte[] encoding) throws IOException { in ReasonCode() argument 64 super(encoding); in ReasonCode() 65 this.code = ((byte[]) ASN1.decode(encoding))[0]; in ReasonCode() 69 if (encoding == null) { in getEncoded() 70 encoding = ASN1.encode(new byte[] { code }); in getEncoded() 72 return encoding; in getEncoded()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertPath.java | 52 private final byte[] encoding; field in MyCertPath 58 public MyCertPath(byte[] encoding) { in MyCertPath() argument 60 this.encoding = encoding; in MyCertPath() 62 certificates.add(new MyCertificate("MyEncoding", encoding)); in MyCertPath() 81 return encoding.clone(); in getEncoded() 91 public byte[] getEncoded(String encoding) in getEncoded() argument 93 if (getType().equals(encoding)) { in getEncoded() 94 return this.encoding.clone(); in getEncoded() 97 encoding); in getEncoded()
|
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/ |
D | AuthenticatedAttributes.java | 35 private byte[] encoding; field in AuthenticatedAttributes 38 private AuthenticatedAttributes(byte[] encoding, in AuthenticatedAttributes() argument 40 this.encoding = encoding; in AuthenticatedAttributes() 52 if (encoding == null) { in getEncoded() 53 encoding = ASN1.encode(this); in getEncoded() 55 return encoding; in getEncoded()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Locator2Impl.java | 29 private String encoding; field in Locator2Impl 55 encoding = l2.getEncoding (); in Locator2Impl() 81 { return encoding; } in getEncoding() 103 public void setEncoding (String encoding) in setEncoding() argument 104 { this.encoding = encoding; } in setEncoding()
|
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs10/ |
D | CertificationRequest.java | 53 private byte[] encoding; field in CertificationRequest 63 AlgorithmIdentifier algId, byte[] signature, byte[] encoding) { in CertificationRequest() argument 65 this.encoding = encoding; in CertificationRequest() 83 if (encoding == null) { in getEncoded() 84 encoding = CertificationRequest.ASN1.encode(this); in getEncoded() 86 return encoding; in getEncoded()
|
/libcore/luni/src/main/java/org/xml/sax/ |
D | InputSource.java | 272 public void setEncoding (String encoding) in setEncoding() argument 274 this.encoding = encoding; in setEncoding() 290 return encoding; in getEncoding() 332 private String encoding; field in InputSource
|