Package org.globus.gsi.proxy.ext
Class ProxyCertInfo
java.lang.Object
org.globus.gsi.proxy.ext.ProxyCertInfo
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
Represents ProxyCertInfo extension.
ProxyCertInfo ::= SEQUENCE { pCPathLenConstraint INTEGER (0..MAX) OPTIONAL, proxyPolicy ProxyPolicy }
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bouncycastle.asn1.ASN1ObjectIdentifier
ProxyCertInfo extension OIDstatic final org.bouncycastle.asn1.ASN1ObjectIdentifier
private org.bouncycastle.asn1.ASN1Integer
private ProxyPolicy
-
Constructor Summary
ConstructorsConstructorDescriptionProxyCertInfo
(int pathLenConstraint, ProxyPolicy policy) Creates a new instance of the ProxyCertInfo extension.ProxyCertInfo
(org.bouncycastle.asn1.ASN1Sequence seq) Creates a new instance of the ProxyCertInfo extension from given ASN1Sequence object.ProxyCertInfo
(ProxyPolicy policy) Creates a new instance of the ProxyCertInfo extension with no path length constraint. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyCertInfo
getInstance
(Object obj) Returns an instance ofProxyCertInfo
from given object.int
Returns the maximum depth of the path of proxy certificates that can be signed by this proxy certificate.Returns the policy object in the proxy.org.bouncycastle.asn1.ASN1Primitive
Returns the DER-encoded ASN.1 representation of the extension.
-
Field Details
-
OID
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OIDProxyCertInfo extension OID -
OLD_OID
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OLD_OID -
pathLenConstraint
private org.bouncycastle.asn1.ASN1Integer pathLenConstraint -
proxyPolicy
-
-
Constructor Details
-
ProxyCertInfo
public ProxyCertInfo(org.bouncycastle.asn1.ASN1Sequence seq) Creates a new instance of the ProxyCertInfo extension from given ASN1Sequence object.- Parameters:
seq
- ASN1Sequence object to create the instance from.
-
ProxyCertInfo
Creates a new instance of the ProxyCertInfo extension.- Parameters:
pathLenConstraint
- the path length constraint of the extension.policy
- the policy of the extension.
-
ProxyCertInfo
Creates a new instance of the ProxyCertInfo extension with no path length constraint.- Parameters:
policy
- the policy of the extension.
-
-
Method Details
-
getInstance
Returns an instance ofProxyCertInfo
from given object.- Parameters:
obj
- the object to create the instance from.- Returns:
ProxyCertInfo
instance.- Throws:
IllegalArgumentException
- if unable to convert the object toProxyCertInfo
instance.
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()Returns the DER-encoded ASN.1 representation of the extension.- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Returns:
DERObject
the encoded representation of the extension.
-
getProxyPolicy
Returns the policy object in the proxy.- Returns:
ProxyPolicy
the policy object
-
getPathLenConstraint
public int getPathLenConstraint()Returns the maximum depth of the path of proxy certificates that can be signed by this proxy certificate.- Returns:
- the maximum depth of the path of proxy certificates that can be
signed by this proxy certificate. If 0 then this certificate must
not be used to sign a proxy certificate. If the path length
constraint field is not defined
Integer.MAX_VALUE
is returned.
-