Methods Summary |
---|
public org.apache.harmony.security.x509.CertificatePolicies | addPolicyInformation(PolicyInformation policyInformation)TODO
encoding = null;
if (policyInformations == null) {
policyInformations = new ArrayList();
}
policyInformations.add(policyInformation);
return this;
|
public static org.apache.harmony.security.x509.CertificatePolicies | decode(byte[] encoding)
CertificatePolicies cps = ((CertificatePolicies) ASN1.decode(encoding));
cps.encoding = encoding;
return cps;
|
public void | dumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)Places the string representation of extension value
into the StringBuffer object.
buffer.append(prefix).append("CertificatePolicies [\n"); //$NON-NLS-1$
for (Iterator it=policyInformations.iterator(); it.hasNext();) {
buffer.append(prefix);
buffer.append(" "); //$NON-NLS-1$
((PolicyInformation) it.next()).dumpValue(buffer);
buffer.append('\n");
}
buffer.append(prefix).append("]\n"); //$NON-NLS-1$
|
public byte[] | getEncoded()Returns ASN.1 encoded form of this X.509 CertificatePolicies value.
if (encoding == null) {
encoding = ASN1.encode(this);
}
return encoding;
|
public java.util.List | getPolicyInformations()Returns the values of policyInformation field of the structure.
return new ArrayList(policyInformations);
|