public class ProxyCertInfo extends Object implements org.bouncycastle.asn1.DEREncodable
ProxyCertInfo ::= SEQUENCE { pCPathLenConstraint INTEGER (0..MAX) OPTIONAL, proxyPolicy ProxyPolicy }
| Modifier and Type | Field and Description |
|---|---|
static org.bouncycastle.asn1.DERObjectIdentifier |
OID
ProxyCertInfo extension OID
|
static org.bouncycastle.asn1.DERObjectIdentifier |
OLD_OID |
| Constructor and Description |
|---|
ProxyCertInfo(org.bouncycastle.asn1.ASN1Sequence seq)
Creates a new instance of the ProxyCertInfo extension from given ASN1Sequence object.
|
ProxyCertInfo(int pathLenConstraint,
ProxyPolicy policy)
Creates a new instance of the ProxyCertInfo extension.
|
ProxyCertInfo(ProxyPolicy policy)
Creates a new instance of the ProxyCertInfo extension with no path length constraint.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.DERObject |
getDERObject()
Returns the DER-encoded ASN.1 representation of the extension.
|
static ProxyCertInfo |
getInstance(Object obj)
Returns an instance of
ProxyCertInfo from given object. |
int |
getPathLenConstraint()
Returns the maximum depth of the path of proxy certificates that can be signed by this proxy certificate.
|
ProxyPolicy |
getProxyPolicy()
Returns the policy object in the proxy.
|
public static final org.bouncycastle.asn1.DERObjectIdentifier OID
public static final org.bouncycastle.asn1.DERObjectIdentifier OLD_OID
public ProxyCertInfo(org.bouncycastle.asn1.ASN1Sequence seq)
seq - ASN1Sequence object to create the instance from.public ProxyCertInfo(int pathLenConstraint,
ProxyPolicy policy)
pathLenConstraint - the path length constraint of the extension.policy - the policy of the extension.public ProxyCertInfo(ProxyPolicy policy)
policy - the policy of the extension.public static ProxyCertInfo getInstance(Object obj)
ProxyCertInfo from given object.obj - the object to create the instance from.ProxyCertInfo instance.IllegalArgumentException - if unable to convert the object to ProxyCertInfo instance.public org.bouncycastle.asn1.DERObject getDERObject()
getDERObject in interface org.bouncycastle.asn1.DEREncodableDERObject the encoded representation of the extension.public ProxyPolicy getProxyPolicy()
ProxyPolicy the policy objectpublic int getPathLenConstraint()
Integer.MAX_VALUE is
returned.Copyright © 2013. All Rights Reserved.