org.bouncycastle.asn1.ASN1Encodable
public class ProxyPolicy extends Object implements org.bouncycastle.asn1.ASN1Encodable
ProxyPolicy ::= SEQUENCE { policyLanguage OBJECT IDENTIFIER, policy OCTET STRING OPTIONAL }
Modifier and Type | Field | Description |
---|---|---|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
IMPERSONATION |
Impersonation proxy OID
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
INDEPENDENT |
Independent proxy OID
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
LIMITED |
Limited proxy OID
|
Constructor | Description |
---|---|
ProxyPolicy(String policyLanguageOid,
byte[] policy) |
Creates a new instance of the ProxyPolicy object.
|
ProxyPolicy(org.bouncycastle.asn1.ASN1ObjectIdentifier policyLanguage) |
Creates a new instance of the ProxyPolicy object with no policy.
|
ProxyPolicy(org.bouncycastle.asn1.ASN1ObjectIdentifier policyLanguage,
byte[] policy) |
Creates a new instance of the ProxyPolicy object.
|
ProxyPolicy(org.bouncycastle.asn1.ASN1ObjectIdentifier policyLanguage,
String policy) |
Creates a new instance of the ProxyPolicy object.
|
ProxyPolicy(org.bouncycastle.asn1.ASN1Sequence seq) |
Creates a new instance of the ProxyPolicy object from given ASN1Sequence object.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
checkConstraints() |
|
byte[] |
getPolicy() |
Returns the actual policy embedded in the ProxyPolicy object.
|
String |
getPolicyAsString() |
Returns the actual policy embedded in the ProxyPolicy object.
|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getPolicyLanguage() |
Returns the policy language of the ProxyPolicy.
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
Returns the DER-encoded ASN.1 representation of proxy policy.
|
String |
toString() |
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier IMPERSONATION
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier INDEPENDENT
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier LIMITED
public ProxyPolicy(org.bouncycastle.asn1.ASN1Sequence seq)
seq
- ASN1Sequence object to create the instance from.public ProxyPolicy(org.bouncycastle.asn1.ASN1ObjectIdentifier 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(org.bouncycastle.asn1.ASN1ObjectIdentifier policyLanguage, String policy)
policyLanguage
- the language policy Oid.policy
- the policy.public ProxyPolicy(org.bouncycastle.asn1.ASN1ObjectIdentifier policyLanguage)
policyLanguage
- the language policy Oid.public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
DERObject
the encoded representation of the proxy
policy.protected void checkConstraints()
public byte[] getPolicy()
public String getPolicyAsString()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getPolicyLanguage()
Copyright © 2018. All rights reserved.