Searched defs:encoding (Results 51 - 75 of 86) sorted by relevance

1234

/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DReasonCode.java62 public ReasonCode(byte[] encoding) throws IOException { argument
63 super(encoding);
64 this.code = ((byte[]) ASN1.decode(encoding))[0];
68 if (encoding == null) {
69 encoding = ASN1.encode(new byte[] { code });
71 return encoding;
H A DSubjectPublicKeyInfo.java38 * The class encapsulates the ASN.1 DER encoding/decoding work
62 private byte[] encoding; field in class:SubjectPublicKeyInfo
74 byte[] encoding) {
78 this.encoding = encoding;
99 if (encoding == null) {
100 encoding = ASN1.encode(this);
102 return encoding;
72 SubjectPublicKeyInfo(AlgorithmIdentifier algID, byte[] subjectPublicKey, int unused, byte[] encoding) argument
H A DExtensions.java40 * The class encapsulates the ASN.1 DER encoding/decoding work
76 private byte[] encoding; field in class:Extensions
352 if (encoding == null) {
353 encoding = ASN1.encode(this);
355 return encoding;
H A DTBSCertList.java41 * The class encapsulates the ASN.1 DER encoding/decoding work
83 private byte[] encoding; field in class:TBSCertList
92 private byte[] encoding; field in class:TBSCertList.RevokedCertificate
134 if (encoding == null) {
135 encoding = ASN1.encode(this);
137 return encoding;
193 /** Constructs the object with associated ASN.1 encoding */
197 byte[] encoding) {
205 this.encoding = encoding;
194 TBSCertList(int version, AlgorithmIdentifier signature, Name issuer, Date thisUpdate, Date nextUpdate, List<RevokedCertificate> revokedCertificates, Extensions crlExtensions, byte[] encoding) argument
[all...]
H A DTBSCertificate.java38 * The class encapsulates the ASN.1 DER encoding/decoding work
86 private byte[] encoding; field in class:TBSCertificate
111 Extensions extensions, byte[] encoding) {
114 this.encoding = encoding;
191 if (encoding == null) {
192 encoding = ASN1.encode(this);
194 return encoding;
106 TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, boolean[] issuerUniqueID, boolean[] subjectUniqueID, Extensions extensions, byte[] encoding) argument
H A DExtension.java37 * The class encapsulates the ASN.1 DER encoding/decoding work
96 private byte[] encoding; field in class:Extension
136 byte[] rawExtnValue, byte[] encoding,
140 this.encoding = encoding;
184 if (encoding == null) {
185 encoding = Extension.ASN1.encode(this);
187 return encoding;
360 // second - raw encoding of octet string
135 Extension(int[] extnID, boolean critical, byte[] extnValue, byte[] rawExtnValue, byte[] encoding, ExtensionValue decodedExtValue) argument
H A DGeneralName.java50 * The class encapsulates the ASN.1 DER encoding/decoding work
133 private byte[] encoding; field in class:GeneralName
535 if (encoding == null) {
536 encoding = ASN1.encode(this);
538 return encoding;
737 result.encoding = in.getEncoded();
/libcore/luni/src/main/java/org/apache/harmony/security/x509/tsp/
H A DTimeStampReq.java63 private byte [] encoding; field in class:TimeStampReq
78 Extensions extensions, byte [] encoding) {
80 this.encoding = encoding;
107 if (encoding == null) {
108 encoding = ASN1.encode(this);
110 return encoding;
76 TimeStampReq(int version, MessageImprint messageImprint, String reqPolicy, BigInteger nonce, Boolean certReq, Extensions extensions, byte [] encoding) argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStoreSpiTest.java237 // MyCertificate encoding
238 private final byte[] encoding; field in class:MyCertificate
240 public MyCertificate(String type, byte[] encoding) { argument
243 this.encoding = encoding;
248 return encoding.clone();
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
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 DMyCertificateFactorySpi.java111 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) argument
116 if (encoding.length() == 0) {
H A DMyCertificate.java43 // MyCertificate encoding
44 private final byte[] encoding; field in class:MyCertificate
52 * @param encoding
54 public MyCertificate(String type, byte[] encoding) { argument
57 this.encoding = encoding;
61 * Returns <code>MyCertificate</code> encoding
65 return encoding.clone();
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLX509CertificateFactory.java319 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) argument
321 return OpenSSLX509CertPath.fromEncoding(inStream, encoding);
/libcore/luni/src/main/java/java/io/
H A DPrintStream.java30 * confused with DataOutputStream which is used for encoding common data types
47 private String encoding; field in class:PrintStream
90 * stream and using the character encoding {@code charsetName} while writing. The
100 * the non-null string describing the desired character encoding.
104 * if the encoding specified by {@code charsetName} is not supported.
122 encoding = charsetName;
127 * VM's default character set is used for character encoding.
141 * character set named {@code charsetName} is used for character encoding.
147 * the name of the character set used for character encoding.
153 * if the encoding specifie
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
H A DCache.java42 * whether provided form is PEM encoding or not.<br>
57 * generated on the base of the encoding with the SIMILAR prefix or not.
59 * But it prevents us from use of expensive full encoding
62 * 2. If predetermination ends with success, the whole encoding
76 // value generated on the base of the prefix of encoding
78 // value generated on the base of the tail of encoding
100 // The hash-encoding-object correspondence is made by means of index
102 // corresponds to the encoding contained in encodings[N] which corresponds
160 * similar encoding or not (by means of <code>contains(long)</code> method),
166 * of the encoding
213 get(long hash, byte[] encoding) argument
241 put(long hash, byte[] encoding, Object object) argument
[all...]
H A DX509CertPathImpl.java82 * Supported encoding types for CerthPath. Used by the various APIs that
115 /** PkiPath encoding of the certification path. */
118 /** PKCS7 encoding of the certification path. */
149 * expected output for the {@code type} of encoding.
196 * Generates certification path object on the basis of encoding provided via
198 * parameter <code>encoding</code>.
200 * @throws CertificateException if specified encoding form is not supported,
203 public static X509CertPathImpl getInstance(InputStream in, String encoding) argument
206 final Encoding encType = Encoding.findByApiName(encoding);
208 throw new CertificateException("Unsupported encoding
246 getInstance(byte[] in, String encoding) argument
293 getEncoded(Encoding encoding) argument
316 getEncoded(String encoding) argument
[all...]
H A DX509CRLImpl.java81 private byte[] encoding; field in class:X509CRLImpl
129 public X509CRLImpl(byte[] encoding) throws IOException { argument
130 this((CertificateList) CertificateList.ASN1.decode(encoding));
142 if (encoding == null) {
143 encoding = crl.getEncoded();
145 byte[] result = new byte[encoding.length];
146 System.arraycopy(encoding, 0, result, 0, encoding.length);
H A DX509CertFactoryImpl.java76 * certificate, or PEM (Base64 encoding bounded by
99 // mark is needed to recognize the format of the provided encoding
134 // if it is PEM encoded form this array will contain the encoding
135 // so ((it is PEM) <-> (encoding != null))
136 byte[] encoding = null;
140 // unsupported encoding)
146 if (ch == '-') { // beginning of PEM encoding ('-' char)
147 // decode PEM chunk and store its content (ASN.1 encoding)
148 encoding = decodePEM(inStream, FREE_BOUND_SUFFIX);
150 encoding
385 engineGenerateCertPath( InputStream inStream, String encoding) argument
601 getCertificate(byte[] encoding) argument
673 getCRL(byte[] encoding) argument
[all...]
H A DX509CertImpl.java88 // encoding of the certificate
89 private volatile byte[] encoding; field in class:X509CertImpl
123 * @param encoding byte array containing ASN.1 encoded form of certificate.
126 public X509CertImpl(byte[] encoding) throws IOException { argument
127 this((Certificate) Certificate.ASN1.decode(encoding));
348 byte[] result = encoding;
349 if (encoding == null) {
350 encoding = result = certificate.getEncoded();
373 // retrieve the encoding of the TBSCertificate structure
388 // retrieve the encoding o
[all...]
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DLSInput.java20 * encoding), a base URI, and/or a character stream.
63 * of the encoding attribute will be ignored.
71 * of the encoding attribute will be ignored.
78 * <br> If the application knows the character encoding of the byte
79 * stream, it should set the encoding attribute. Setting the encoding in
80 * this way will override any encoding specified in an XML declaration
87 * <br> If the application knows the character encoding of the byte
88 * stream, it should set the encoding attribute. Setting the encoding i
203 setEncoding(String encoding) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DKeyStoreTestSupport.java119 private final byte[] encoding; field in class:KeyStoreTestSupport.MCertificate
123 public MCertificate(String type, byte[] encoding) { argument
125 this.encoding = encoding;
130 return encoding.clone();
155 return encoding;
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlSerializer.java92 * Set to use binary output stream with given encoding.
94 void setOutput (OutputStream os, String encoding) argument
99 * <p><b>WARNING</b> no information about encoding is available!
105 * Write &lt;&#63;xml declaration with encoding (if encoding not null)
109 void startDocument (String encoding, Boolean standalone) argument
/libcore/luni/src/main/java/java/util/
H A DProperties.java73 private static final String PROP_DTD = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
660 * as the encoding. The {@code OutputStream} is not closed at the end. A
681 * {@code encoding} defines which encoding should be used. The {@code
686 * @param encoding the code identifying the encoding that should be used to
691 String encoding) throws IOException {
695 } else if (encoding == null) {
696 throw new NullPointerException("encoding == null");
700 * We can write to XML file using encoding paramete
690 storeToXML(OutputStream os, String comment, String encoding) argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DHandler.java35 // the character encoding used by this handler
36 private String encoding; field in class:Handler
52 * {@code ErrorManager}, the default encoding, and the default logging
58 this.encoding = null;
96 * encoding
141 // set encoding
142 final String encodingName = manager.getProperty(prefix + ".encoding");
146 printInvalidPropMessage("encoding", encodingName, e);
171 * Gets the character encoding used by this handler, {@code null} for
172 * default encoding
[all...]
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java399 /* Make sure all encoding entries are the same. */
408 String encoding = it1.next();
409 assertEquals(p.getName(), encoding, it2.next());
423 /* Now test using this encoding. */
424 testCertPathEncoding(cf, certs, encoding);
430 String encoding) throws Exception {
431 final String providerName = cf.getProvider().getName() + "[" + encoding + "]";
437 if (encoding == null) {
445 encodedCopy = pathFromList.getEncoded(encoding);
449 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded(encoding)),
429 testCertPathEncoding(CertificateFactory cf, List<X509Certificate> expectedCerts, String encoding) argument
[all...]

Completed in 358 milliseconds

1234