Package eu.emi.security.authn.x509.proxy
Class ProxyPolicy
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- eu.emi.security.authn.x509.proxy.ProxyPolicy
-
- All Implemented Interfaces:
java.lang.Cloneable,org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class ProxyPolicy extends org.bouncycastle.asn1.ASN1Object implements java.lang.CloneableProxy policy ASN1 class.ProxyPolicy ::= SEQUENCE { policyLanguage OBJECT IDENTIFIER, policy OCTET STRING OPTIONAL }
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINDEPENDENT_POLICY_OIDThe rarely used policy where the proxy is independent of the parent and does not inherit rights from it.static java.lang.StringINHERITALL_POLICY_OIDThe normal, default policy, the proxy inherits the rights of the parent.static java.lang.StringLIMITED_PROXY_OIDThe limited proxy, which should prevent the proxy from being used for job submission.private java.lang.StringoidThe oid of the policy, default is the inherit all.private org.bouncycastle.asn1.ASN1OctetStringpolicyThe ASN.1 octet string encoding of the policy.
-
Constructor Summary
Constructors Constructor Description ProxyPolicy(java.lang.String oid)Generate basic proxy policy.ProxyPolicy(java.lang.String oid, org.bouncycastle.asn1.ASN1OctetString policy)Generate new policy object using language defined by oid and the policy.ProxyPolicy(org.bouncycastle.asn1.ASN1Sequence seq)Read a new proxy policy object from the ASN1 sequence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyPolicyclone()org.bouncycastle.asn1.ASN1OctetStringgetPolicyASN1()The optional policy information in this structurejava.lang.StringgetPolicyOID()Use to get the policy OID as a String.org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()output the ASN1 object of the proxy policy.
-
-
-
Field Detail
-
INHERITALL_POLICY_OID
public static final java.lang.String INHERITALL_POLICY_OID
The normal, default policy, the proxy inherits the rights of the parent. Defined in RFC 3820.- See Also:
- Constant Field Values
-
INDEPENDENT_POLICY_OID
public static final java.lang.String INDEPENDENT_POLICY_OID
The rarely used policy where the proxy is independent of the parent and does not inherit rights from it. Defined in the RFC 3820.- See Also:
- Constant Field Values
-
LIMITED_PROXY_OID
public static final java.lang.String LIMITED_PROXY_OID
The limited proxy, which should prevent the proxy from being used for job submission. Defined by Globus outside of RFCs.- See Also:
- Constant Field Values
-
oid
private java.lang.String oid
The oid of the policy, default is the inherit all.
-
policy
private org.bouncycastle.asn1.ASN1OctetString policy
The ASN.1 octet string encoding of the policy.
-
-
Constructor Detail
-
ProxyPolicy
public ProxyPolicy(java.lang.String oid)
Generate basic proxy policy.- Parameters:
oid- the policy language or policy to set.
-
ProxyPolicy
public ProxyPolicy(java.lang.String oid, org.bouncycastle.asn1.ASN1OctetString policy)Generate new policy object using language defined by oid and the policy.- Parameters:
oid- the OID for the language. Null retains the default of inherit all.policy- the policy. Null means no policy.
-
ProxyPolicy
public ProxyPolicy(org.bouncycastle.asn1.ASN1Sequence seq)
Read a new proxy policy object from the ASN1 sequence.- Parameters:
seq- The proxy policy ASN1 sequence.
-
-
Method Detail
-
getPolicyOID
public java.lang.String getPolicyOID()
Use to get the policy OID as a String.- Returns:
- The policy OID as a string. It is most likely one of the
constants defined in this class, namely:
- INHERITALL_POLICY_OID
- INDEPENDENT_POLICY_OID
- LIMITED_PROXY_OID
- something else
-
getPolicyASN1
public org.bouncycastle.asn1.ASN1OctetString getPolicyASN1()
The optional policy information in this structure- Returns:
- The policy in ASN1 structure. Null if not present.
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
output the ASN1 object of the proxy policy.- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object- See Also:
org.bouncycastle.asn1.ASN1Object#toASN1Object()
-
clone
public ProxyPolicy clone()
- Overrides:
clonein classjava.lang.Object
-
-