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

123456

/dalvik/libcore/security/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...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DExtensionValue.java30 protected byte[] encoding; field in class:ExtensionValue
40 public ExtensionValue(byte[] encoding) { argument
41 this.encoding = encoding;
48 return encoding;
57 if (encoding == null) {
58 encoding = getEncoded();
60 if (encoding == null) {
63 buffer.append(Array.toString(encoding, prefix));
H A DSubjectKeyIdentifier.java54 public static SubjectKeyIdentifier decode(byte[] encoding) argument
57 ASN1OctetString.getInstance().decode(encoding));
58 res.encoding = encoding;
67 if (encoding == null) {
68 encoding = ASN1OctetString.getInstance().encode(keyIdentifier);
70 return encoding;
H A DAlternativeName.java57 public AlternativeName(boolean which, byte[] encoding) throws IOException { argument
58 super(encoding);
61 (GeneralNames) GeneralNames.ASN1.decode(encoding);
78 if (encoding == null) {
79 encoding = GeneralNames.ASN1.encode(alternativeNames);
81 return encoding;
H A DCRLNumber.java52 public CRLNumber(byte[] encoding) throws IOException { argument
53 super(encoding);
54 number = new BigInteger((byte[]) ASN1.decode(encoding));
69 if (encoding == null) {
70 encoding = ASN1.encode(number.toByteArray());
72 return encoding;
H A DInhibitAnyPolicy.java51 public InhibitAnyPolicy(byte[] encoding) throws IOException { argument
52 super(encoding);
54 ASN1Integer.getInstance().decode(encoding)).intValue();
69 if (encoding == null) {
70 encoding = ASN1Integer.getInstance()
73 return encoding;
H A DInvalidityDate.java50 public InvalidityDate(byte[] encoding) throws IOException { argument
51 super(encoding);
52 date = (Date) ASN1.decode(encoding);
67 if (encoding == null) {
68 encoding = ASN1.encode(date);
70 return encoding;
H A DKeyUsage.java76 public KeyUsage(byte[] encoding) throws IOException { argument
77 super(encoding);
78 this.keyUsage = (boolean[]) ASN1.decode(encoding);
90 if (encoding == null) {
91 encoding = ASN1.encode(keyUsage);
93 return encoding;
H A DCertificatePolicies.java36 * The class encapsulates the ASN.1 DER encoding/decoding work
54 private byte[] encoding; field in class:CertificatePolicies
69 public static CertificatePolicies decode(byte[] encoding) argument
71 CertificatePolicies cps = ((CertificatePolicies) ASN1.decode(encoding));
72 cps.encoding = encoding;
79 // @param encoding: byte[]
81 private CertificatePolicies(List policyInformations, byte[] encoding) { argument
83 this.encoding = encoding;
[all...]
H A DEDIPartyName.java32 * The class encapsulates the ASN.1 DER encoding/decoding work
60 private byte[] encoding; field in class:EDIPartyName
76 // @param encoding: byte[]
79 byte[] encoding) {
82 this.encoding = encoding;
106 if (encoding == null) {
107 encoding = ASN1.encode(this);
109 return encoding;
78 EDIPartyName(String nameAssigner, String partyName, byte[] encoding) argument
H A DOtherName.java34 * The class encapsulates the ASN.1 DER encoding/decoding work
54 private byte[] encoding; field in class:OtherName
69 // @param encoding: byte[]
71 private OtherName(String typeID, byte[] value, byte[] encoding) { argument
74 this.encoding = encoding;
98 if (encoding == null) {
99 encoding = ASN1.encode(this);
101 return encoding;
H A DPrivateKeyUsagePeriod.java34 * The class encapsulates the ASN.1 DER encoding/decoding work
55 private byte[] encoding; field in class:PrivateKeyUsagePeriod
70 // @param encoding: byte[]
73 Date notAfterDate, byte[] encoding) {
76 this.encoding = encoding;
100 if (encoding == null) {
101 encoding = ASN1.encode(this);
103 return encoding;
72 PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate, byte[] encoding) argument
H A DCRLDistributionPoints.java36 * The class encapsulates the ASN.1 DER encoding/decoding work
73 private byte[] encoding; field in class:CRLDistributionPoints
83 public CRLDistributionPoints(List distributionPoints, byte[] encoding) { argument
89 this.encoding = encoding;
93 if (encoding == null) {
94 encoding = ASN1.encode(this);
96 return encoding;
99 public static CRLDistributionPoints decode(byte[] encoding) argument
101 CRLDistributionPoints cdp = (CRLDistributionPoints) ASN1.decode(encoding);
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DIESParameters.java12 private byte[] encoding; field in class:IESParameters
17 * @param encoding the encoding parameter for the KDF function.
22 byte[] encoding,
26 this.encoding = encoding;
37 return encoding;
20 IESParameters( byte[] derivation, byte[] encoding, int macKeySize) argument
H A DIESWithCipherParameters.java11 * @param encoding the encoding parameter for the KDF function.
17 byte[] encoding,
21 super(derivation, encoding, macKeySize);
15 IESWithCipherParameters( byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/spec/
H A DIESParameterSpec.java12 private byte[] encoding; field in class:IESParameterSpec
17 byte[] encoding,
23 this.encoding = new byte[encoding.length];
24 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length);
38 * return the encoding vector.
42 return encoding;
15 IESParameterSpec( byte[] derivation, byte[] encoding, int macKeySize) argument
/dalvik/libcore/xml/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...]
/dalvik/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);
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/pkcs7/
H A DAuthenticatedAttributes.java37 private byte[] encoding; field in class:AuthenticatedAttributes
40 public AuthenticatedAttributes(byte[] encoding, List authenticatedAttributes) { argument
41 this.encoding = encoding;
53 if (encoding == null) {
54 encoding = ASN1.encode(this);
56 return encoding;
/dalvik/libcore/security/src/test/java/tests/security/cert/
H A DPolicyQualifierInfoTest.java94 // get valid encoding
95 byte[] encoding = getDerEncoding();
97 encoding[1] = (byte)0x27;
101 new PolicyQualifierInfo(encoding);
107 // get valid encoding
108 encoding = getDerEncoding();
111 encoding[2] = (byte)13;
114 new PolicyQualifierInfo(encoding);
134 // get valid encoding
135 byte[] encoding
[all...]
/dalvik/libcore/xml/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...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/serializer/
H A DEncodings.java54 * Returns a writer for the specified encoding based on
59 * @param encoding The encoding MIME name, not a Java name for the encoding.
62 * to support this encoding
65 static Writer getWriter(OutputStream output, String encoding) argument
71 if (_encodings[i].name.equalsIgnoreCase(encoding))
93 return new OutputStreamWriter(output, encoding);
97 throw new UnsupportedEncodingException(encoding);
103 * encoding, neve
114 getEncodingInfo(String encoding) argument
137 isRecognizedEncoding(String encoding) argument
209 getMimeEncoding(String encoding) argument
270 convertJava2MimeEncoding(String encoding) argument
291 convertMime2JavaEncoding(String encoding) argument
478 getHighChar(String encoding) argument
[all...]

Completed in 509 milliseconds

123456