public class ProxyPolicy extends ASN1Object implements Cloneable
ProxyPolicy ::= SEQUENCE { policyLanguage OBJECT IDENTIFIER, policy OCTET STRING OPTIONAL }
Modifier and Type | Field and Description |
---|---|
static String |
INDEPENDENT_POLICY_OID
The rarely used policy where the proxy is independent of the parent
and does not inherit rights from it.
|
static String |
INHERITALL_POLICY_OID
The normal, default policy, the proxy inherits the rights of the
parent.
|
static String |
LIMITED_PROXY_OID
The limited proxy, which should prevent the proxy from being used for
job submission.
|
Constructor and Description |
---|
ProxyPolicy(ASN1Sequence seq)
Read a new proxy policy object from the ASN1 sequence.
|
ProxyPolicy(String oid)
Generate basic proxy policy.
|
ProxyPolicy(String oid,
ASN1OctetString policy)
Generate new policy object using language defined by oid and the
policy.
|
Modifier and Type | Method and Description |
---|---|
ProxyPolicy |
clone() |
ASN1OctetString |
getPolicyASN1()
The optional policy information in this structure
|
String |
getPolicyOID()
Use to get the policy OID as a String.
|
ASN1Primitive |
toASN1Primitive()
output the ASN1 object of the proxy policy.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public static final String INHERITALL_POLICY_OID
public static final String INDEPENDENT_POLICY_OID
public static final String LIMITED_PROXY_OID
public ProxyPolicy(String oid)
oid
- the policy language or policy to set.public ProxyPolicy(String oid, ASN1OctetString policy)
oid
- the OID for the language. Null retains the default of
inherit all.policy
- the policy. Null means no policy.public ProxyPolicy(ASN1Sequence seq)
seq
- The proxy policy ASN1 sequence.public String getPolicyOID()
public ASN1OctetString getPolicyASN1()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
ASN1Object.toASN1Object()
public ProxyPolicy clone()
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.