|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
org.globus.gsi.proxy.ext
Class ProxyCertInfo
java.lang.Objectorg.globus.gsi.proxy.ext.ProxyCertInfo
- All Implemented Interfaces:
- DEREncodable
- public class ProxyCertInfo
- extends Object
- implements DEREncodable
- extends Object
Represents ProxyCertInfo extension.
ProxyCertInfo ::= SEQUENCE {
pCPathLenConstraint INTEGER (0..MAX) OPTIONAL,
proxyPolicy ProxyPolicy }
| Field Summary | |
static DERObjectIdentifier |
OID
ProxyCertInfo extension OID |
| Constructor Summary | |
ProxyCertInfo(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. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
OID
public static final DERObjectIdentifier OID
- ProxyCertInfo extension OID
| Constructor Detail |
ProxyCertInfo
public ProxyCertInfo(ASN1Sequence seq)
- Creates a new instance of the ProxyCertInfo extension from
given ASN1Sequence object.
- Parameters:
seq- ASN1Sequence object to create the instance from.
ProxyCertInfo
public ProxyCertInfo(int pathLenConstraint,
ProxyPolicy policy)
- Creates a new instance of the ProxyCertInfo extension.
- Parameters:
pathLenConstraint- the path length constraint of the extension.policy- the policy of the extension.
ProxyCertInfo
public ProxyCertInfo(ProxyPolicy policy)
- Creates a new instance of the ProxyCertInfo
extension with no path length constraint.
- Parameters:
policy- the policy of the extension.
| Method Detail |
getInstance
public static ProxyCertInfo getInstance(Object obj)
- Returns an instance of
ProxyCertInfofrom given object.- Parameters:
obj- the object to create the instance from.- Returns:
ProxyCertInfoinstance.- Throws:
IllegalArgumentException- if unable to convert the object toProxyCertInfoinstance.
getDERObject
public DERObject getDERObject()
- Returns the DER-encoded ASN.1 representation of the
extension.
- Specified by:
getDERObjectin interfaceDEREncodable
- Returns:
DERObjectthe encoded representation of the extension.
getProxyPolicy
public ProxyPolicy getProxyPolicy()
- Returns the policy object in the proxy.
- Returns:
ProxyPolicythe 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_VALUEis returned.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
org.globus.gsi.proxy.ext.ProxyCertInfo