|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.globus.gsi.proxy.ext
Class ProxyPolicy
java.lang.Objectorg.globus.gsi.proxy.ext.ProxyPolicy
- All Implemented Interfaces:
- DEREncodable
public class ProxyPolicy
- extends Object
- implements DEREncodable
- extends Object
Represents the policy part of the ProxyCertInfo extension.
ProxyPolicy ::= SEQUENCE {
policyLanguage OBJECT IDENTIFIER,
policy OCTET STRING OPTIONAL }
| Field Summary | |
|---|---|
static DERObjectIdentifier |
IMPERSONATION
Impersonation proxy OID |
static DERObjectIdentifier |
INDEPENDENT
Independent proxy OID |
static DERObjectIdentifier |
LIMITED
Limited proxy OID |
| Constructor Summary | |
|---|---|
ProxyPolicy(ASN1Sequence seq)
Creates a new instance of the ProxyPolicy object from given ASN1Sequence object. |
|
ProxyPolicy(DERObjectIdentifier policyLanguage)
Creates a new instance of the ProxyPolicy object with no policy. |
|
ProxyPolicy(DERObjectIdentifier policyLanguage,
byte[] policy)
Creates a new instance of the ProxyPolicy object. |
|
ProxyPolicy(DERObjectIdentifier policyLanguage,
String policy)
Creates a new instance of the ProxyPolicy object. |
|
ProxyPolicy(String policyLanguageOid,
byte[] policy)
Creates a new instance of the ProxyPolicy object. |
|
| Method Summary | |
|---|---|
protected void |
checkConstraints()
|
DERObject |
getDERObject()
Returns the DER-encoded ASN.1 representation of proxy policy. |
byte[] |
getPolicy()
Returns the actual policy embedded in the ProxyPolicy object. |
String |
getPolicyAsString()
Returns the actual policy embedded in the ProxyPolicy object. |
DERObjectIdentifier |
getPolicyLanguage()
Returns the policy language of the ProxyPolicy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
IMPERSONATION
public static final DERObjectIdentifier IMPERSONATION
- Impersonation proxy OID
INDEPENDENT
public static final DERObjectIdentifier INDEPENDENT
- Independent proxy OID
LIMITED
public static final DERObjectIdentifier LIMITED
- Limited proxy OID
| Constructor Detail |
|---|
ProxyPolicy
public ProxyPolicy(ASN1Sequence seq)
- Creates a new instance of the ProxyPolicy object from
given ASN1Sequence object.
- Parameters:
seq- ASN1Sequence object to create the instance from.
ProxyPolicy
public ProxyPolicy(DERObjectIdentifier policyLanguage, byte[] policy)
- Creates a new instance of the ProxyPolicy object.
- Parameters:
policyLanguage- the language policy Oid.policy- the policy.
ProxyPolicy
public ProxyPolicy(String policyLanguageOid, byte[] policy)
- Creates a new instance of the ProxyPolicy object.
- Parameters:
policyLanguageOid- the language policy Oid.policy- the policy.
ProxyPolicy
public ProxyPolicy(DERObjectIdentifier policyLanguage, String policy)
- Creates a new instance of the ProxyPolicy object.
- Parameters:
policyLanguage- the language policy Oid.policy- the policy.
ProxyPolicy
public ProxyPolicy(DERObjectIdentifier policyLanguage)
- Creates a new instance of the ProxyPolicy object
with no policy.
- Parameters:
policyLanguage- the language policy Oid.
| Method Detail |
|---|
getDERObject
public DERObject getDERObject()
- Returns the DER-encoded ASN.1 representation of proxy
policy.
- Specified by:
getDERObjectin interfaceDEREncodable
- Returns:
DERObjectthe encoded representation of the proxy policy.
checkConstraints
protected void checkConstraints()
getPolicy
public byte[] getPolicy()
- Returns the actual policy embedded in the ProxyPolicy object.
- Returns:
- the policy in bytes. Might be null.
getPolicyAsString
public String getPolicyAsString()
- Returns the actual policy embedded in the ProxyPolicy object.
- Returns:
- the policy as String. Might be null.
getPolicyLanguage
public DERObjectIdentifier getPolicyLanguage()
- Returns the policy language of the ProxyPolicy.
- Returns:
- the policy language Oid.
toString
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.globus.gsi.proxy.ext.ProxyPolicy