|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.proxy.ext.ProxyPolicy
public class ProxyPolicy
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 |
---|
public static final DERObjectIdentifier IMPERSONATION
public static final DERObjectIdentifier INDEPENDENT
public static final DERObjectIdentifier LIMITED
Constructor Detail |
---|
public ProxyPolicy(ASN1Sequence seq)
seq
- ASN1Sequence object to create the instance from.public ProxyPolicy(DERObjectIdentifier policyLanguage, byte[] policy)
policyLanguage
- the language policy Oid.policy
- the policy.public ProxyPolicy(String policyLanguageOid, byte[] policy)
policyLanguageOid
- the language policy Oid.policy
- the policy.public ProxyPolicy(DERObjectIdentifier policyLanguage, String policy)
policyLanguage
- the language policy Oid.policy
- the policy.public ProxyPolicy(DERObjectIdentifier policyLanguage)
policyLanguage
- the language policy Oid.Method Detail |
---|
public DERObject getDERObject()
getDERObject
in interface DEREncodable
DERObject
the encoded representation
of the proxy policy.protected void checkConstraints()
public byte[] getPolicy()
public String getPolicyAsString()
public DERObjectIdentifier getPolicyLanguage()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |