Searched refs:encoding (Results 1 - 25 of 99) sorted by relevance

1234

/libcore/luni/src/main/java/org/apache/harmony/security/
H A DPrivateKeyImpl.java35 private byte[] encoding; field in class:PrivateKeyImpl
51 byte[] toReturn = new byte[encoding.length];
52 System.arraycopy(encoding, 0, toReturn, 0, encoding.length);
61 public void setEncoding(byte[] encoding) { argument
62 this.encoding = new byte[encoding.length];
63 System.arraycopy(encoding, 0, this.encoding, 0, encoding
[all...]
H A DPublicKeyImpl.java35 private byte[] encoding; field in class:PublicKeyImpl
56 byte[] result = new byte[encoding.length];
57 System.arraycopy(encoding, 0, result, 0, encoding.length);
67 public void setEncoding(byte[] encoding) { argument
68 this.encoding = new byte[encoding.length];
69 System.arraycopy(encoding, 0, this.encoding, 0, encoding
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DExtensionValue.java28 protected byte[] encoding; field in class:ExtensionValue
34 public ExtensionValue(byte[] encoding) { argument
35 this.encoding = encoding;
40 return encoding;
45 if (encoding == null) {
46 encoding = getEncoded();
48 if (encoding == null) {
51 sb.append(Array.toString(encoding, prefix));
H A DInhibitAnyPolicy.java44 public InhibitAnyPolicy(byte[] encoding) throws IOException { argument
45 super(encoding);
47 ASN1Integer.getInstance().decode(encoding)).intValue();
54 if (encoding == null) {
55 encoding = ASN1Integer.getInstance()
58 return encoding;
H A DSubjectKeyIdentifier.java53 public static SubjectKeyIdentifier decode(byte[] encoding) argument
56 ASN1OctetString.getInstance().decode(encoding));
57 res.encoding = encoding;
69 if (encoding == null) {
70 encoding = ASN1OctetString.getInstance().encode(keyIdentifier);
72 return encoding;
H A DAlternativeName.java46 public AlternativeName(boolean which, byte[] encoding) throws IOException { argument
47 super(encoding);
49 this.alternativeNames = (GeneralNames) GeneralNames.ASN1.decode(encoding);
56 if (encoding == null) {
57 encoding = GeneralNames.ASN1.encode(alternativeNames);
59 return encoding;
H A DCRLNumber.java43 public CRLNumber(byte[] encoding) throws IOException { argument
44 super(encoding);
45 number = new BigInteger((byte[]) ASN1.decode(encoding));
59 if (encoding == null) {
60 encoding = ASN1.encode(number.toByteArray());
62 return encoding;
H A DInvalidityDate.java41 public InvalidityDate(byte[] encoding) throws IOException { argument
42 super(encoding);
43 date = (Date) ASN1.decode(encoding);
57 if (encoding == null) {
58 encoding = ASN1.encode(date);
60 return encoding;
H A DKeyUsage.java67 public KeyUsage(byte[] encoding) throws IOException { argument
68 super(encoding);
69 this.keyUsage = (boolean[]) ASN1.decode(encoding);
77 if (encoding == null) {
78 encoding = ASN1.encode(keyUsage);
80 return encoding;
H A DCertificatePolicies.java34 * The class encapsulates the ASN.1 DER encoding/decoding work
49 private byte[] encoding; field in class:CertificatePolicies
56 public static CertificatePolicies decode(byte[] encoding) throws IOException { argument
57 CertificatePolicies cps = ((CertificatePolicies) ASN1.decode(encoding));
58 cps.encoding = encoding;
62 private CertificatePolicies(List<PolicyInformation> policyInformations, byte[] encoding) { argument
64 this.encoding = encoding;
75 encoding
[all...]
H A DCRLDistributionPoints.java33 * The class encapsulates the ASN.1 DER encoding/decoding work
69 private byte[] encoding; field in class:CRLDistributionPoints
71 private CRLDistributionPoints(List<DistributionPoint> distributionPoints, byte[] encoding) { argument
76 this.encoding = encoding;
80 if (encoding == null) {
81 encoding = ASN1.encode(this);
83 return encoding;
86 public static CRLDistributionPoints decode(byte[] encoding) throws IOException { argument
87 return (CRLDistributionPoints) ASN1.decode(encoding);
[all...]
H A DAccessDescription.java27 * The class encapsulates the ASN.1 DER encoding/decoding work
46 private byte[] encoding; field in class:AccessDescription
48 private AccessDescription(String accessMethod, GeneralName accessLocation, byte[] encoding) { argument
51 this.encoding = encoding;
58 if (encoding == null) {
59 encoding = ASN1.encode(this);
61 return encoding;
H A DEDIPartyName.java32 * The class encapsulates the ASN.1 DER encoding/decoding work
60 private byte[] encoding; field in class:EDIPartyName
62 private EDIPartyName(String nameAssigner, String partyName, byte[] encoding) { argument
65 this.encoding = encoding;
72 if (encoding == null) {
73 encoding = ASN1.encode(this);
75 return encoding;
H A DOtherName.java34 * The class encapsulates the ASN.1 DER encoding/decoding work
54 private byte[] encoding; field in class:OtherName
60 private OtherName(String typeID, byte[] value, byte[] encoding) { argument
63 this.encoding = encoding;
77 if (encoding == null) {
78 encoding = ASN1.encode(this);
80 return encoding;
H A DPrivateKeyUsagePeriod.java33 * The class encapsulates the ASN.1 DER encoding/decoding work
53 private byte[] encoding; field in class:PrivateKeyUsagePeriod
59 private PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate, byte[] encoding) { argument
62 this.encoding = encoding;
83 if (encoding == null) {
84 encoding = ASN1.encode(this);
86 return encoding;
H A DORAddress.java30 * The class encapsulates the ASN.1 DER encoding/decoding work
51 private byte[] encoding; field in class:ORAddress
57 if (encoding == null) {
58 encoding = ASN1.encode(this);
60 return encoding;
H A DGeneralNames.java34 * The class encapsulates the ASN.1 DER encoding/decoding work
53 private byte[] encoding; field in class:GeneralNames
63 private GeneralNames(List<GeneralName> generalNames, byte[] encoding) { argument
65 this.encoding = encoding;
93 encoding = null;
104 if (encoding == null) {
105 encoding = ASN1.encode(this);
107 return encoding;
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DLocator2Impl.java29 private String encoding; field in class:Locator2Impl
43 * <em>encoding</em> and <em>version</em>strings are copied,
55 encoding = l2.getEncoding ();
74 * Returns the current value of the encoding property.
76 * @return the current value of the encoding property.
81 { return encoding; }
98 * Assigns the current value of the encoding property.
100 * @param encoding the new "encoding" value
103 public void setEncoding (String encoding) argument
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DPolicyQualifierInfoTest.java76 // get valid encoding
77 byte[] encoding = getDerEncoding();
79 encoding[1] = (byte)0x27;
83 new PolicyQualifierInfo(encoding);
89 // get valid encoding
90 encoding = getDerEncoding();
93 encoding[2] = (byte)13;
96 new PolicyQualifierInfo(encoding);
110 // get valid encoding
111 byte[] encoding
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyFailingCertPath.java7 public MyFailingCertPath(byte[] encoding) { argument
8 super(encoding);
H A DMyCertPath.java50 * my cert path the only encoding
52 private final byte[] encoding; field in class:MyCertPath
58 public MyCertPath(byte[] encoding) { argument
60 this.encoding = encoding;
62 certificates.add(new MyCertificate("MyEncoding", encoding));
81 return encoding.clone();
86 * <code>encoding</code> parameter
88 * if <code>encoding</code> not equals "MyEncoding"
91 public byte[] getEncoded(String encoding) argument
[all...]
H A DMyFailingCertificate.java7 public MyFailingCertificate(String type, byte[] encoding) { argument
8 super(type, encoding);
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/
H A DAuthenticatedAttributes.java35 private byte[] encoding; field in class:AuthenticatedAttributes
38 private AuthenticatedAttributes(byte[] encoding, argument
40 this.encoding = encoding;
52 if (encoding == null) {
53 encoding = ASN1.encode(this);
55 return encoding;
/libcore/luni/src/main/java/org/xml/sax/
H A DInputSource.java24 * with a specified encoding), and/or a character stream.</p>
34 * encoding declaration found in that stream.
37 * encoding specified in the InputSource or else (if no encoding is
38 * specified) autodetecting the character encoding using an algorithm
81 * the character encoding, if known.</p>
105 * character encoding.</p>
181 * <p>If the application knows the character encoding of the
183 * the encoding using the setEncoding method.</p>
203 * <p>The getEncoding method will return the character encoding
272 setEncoding(String encoding) argument
332 private String encoding; field in class:InputSource
[all...]
/libcore/luni/src/main/java/java/net/
H A DURLDecoder.java50 * x-www-form-urlencoded} MIME content type using the specified encoding
60 * @param encoding
61 * the encoding scheme to be used.
64 * if the specified encoding scheme is invalid.
66 public static String decode(String s, String encoding) throws UnsupportedEncodingException { argument
67 return UriCodec.decode(s, true, Charset.forName(encoding), true);

Completed in 2935 milliseconds

1234