Searched defs:encoding (Results 1 - 25 of 87) sorted by relevance

1234

/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);
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
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 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 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 DBasicConstraints.java52 public BasicConstraints(byte[] encoding) throws IOException { argument
53 super(encoding);
54 Object[] values = (Object[]) ASN1.decode(encoding);
69 if (encoding == null) {
70 encoding = ASN1.encode(new Object[]{ca, BigInteger.valueOf(pathLenConstraint) });
72 return encoding;
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 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 DCertificate.java33 * The class encapsulates the ASN.1 DER encoding/decoding work
56 private byte[] encoding; field in class:Certificate
70 byte[] signatureValue, byte[] encoding) {
72 this.encoding = encoding;
106 if (encoding == null) {
107 encoding = Certificate.ASN1.encode(this);
109 return encoding;
68 Certificate(TBSCertificate tbsCertificate, AlgorithmIdentifier signatureAlgorithm, byte[] signatureValue, byte[] encoding) argument
H A DCertificateIssuer.java47 public CertificateIssuer(byte[] encoding) { argument
48 super(encoding);
64 // incorrect extension value encoding
H A DCertificateList.java33 * The class encapsulates the ASN.1 DER encoding/decoding work
56 private byte[] encoding; field in class:CertificateList
70 byte[] signatureValue, byte[] encoding) {
72 this.encoding = encoding;
103 if (encoding == null) {
104 encoding = CertificateList.ASN1.encode(this);
106 return encoding;
68 CertificateList(TBSCertList tbsCertList, AlgorithmIdentifier signatureAlgorithm, byte[] signatureValue, byte[] encoding) argument
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 DExtendedKeyUsage.java51 public ExtendedKeyUsage(byte[] encoding) { argument
52 super(encoding);
67 if (encoding == null) {
68 encoding = ASN1.encode(keys);
70 return encoding;
79 // incorrect extension value encoding
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 DGeneralSubtree.java32 * The class encapsulates the ASN.1 DER encoding/decoding work
61 private byte[] encoding; field in class:GeneralSubtree
80 if (encoding == null) {
81 encoding = ASN1.encode(this);
83 return encoding;
H A DGeneralSubtrees.java33 * The class encapsulates the ASN.1 DER encoding/decoding work
51 private byte[] encoding; field in class:GeneralSubtrees
69 if (encoding == null) {
70 encoding = ASN1.encode(this);
72 return encoding;
H A DInfoAccessSyntax.java28 * The class encapsulates the ASN.1 DER encoding/decoding work
50 private InfoAccessSyntax(List<?> accessDescriptions, byte[] encoding) throws IOException { argument
55 this.encoding = encoding;
62 if (encoding == null) {
63 encoding = ASN1.encode(this);
65 return encoding;
68 public static InfoAccessSyntax decode(byte[] encoding) throws IOException { argument
69 return ((InfoAccessSyntax) ASN1.decode(encoding));
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;
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyFailingCertPath.java7 public MyFailingCertPath(byte[] encoding) { argument
8 super(encoding);
/libcore/luni/src/main/java/java/security/cert/
H A DCertificateFactorySpi.java94 * default encoding scheme is applied.
109 * InputStream} in the specified encoding.
113 * encoding.
114 * @param encoding
115 * the encoding of the data in the input stream.
122 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) argument
129 * encoding is the default encoding.
147 * (as Strings). The first element is the default encoding.
/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/pkcs10/
H A DCertificationRequest.java28 * The class implements the ASN.1 DER encoding and decoding of the PKCS#10
53 private byte[] encoding; field in class:CertificationRequest
63 AlgorithmIdentifier algId, byte[] signature, byte[] encoding) {
65 this.encoding = encoding;
83 if (encoding == null) {
84 encoding = CertificationRequest.ASN1.encode(this);
86 return encoding;
62 CertificationRequest(CertificationRequestInfo info, AlgorithmIdentifier algId, byte[] signature, byte[] encoding) argument
H A DCertificationRequestInfo.java56 private byte[] encoding; field in class:CertificationRequestInfo
59 SubjectPublicKeyInfo subjectPublicKeyInfo, List<?> attributes, byte [] encoding) {
64 this.encoding = encoding;
80 if (encoding == null) {
81 encoding = ASN1.encode(this);
83 return encoding;
58 CertificationRequestInfo(int version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, List<?> attributes, byte [] encoding) argument
/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/apache/harmony/security/provider/crypto/
H A DThreeIntegerSequence.java35 private byte[] encoding; field in class:ThreeIntegerSequence
42 encoding = null;
46 if (encoding == null) {
47 encoding = ASN1.encode(this);
49 return encoding;

Completed in 181 milliseconds

1234