Class RFCProxyCertInfoExtension
java.lang.Object
org.bouncycastle.asn1.ASN1Object
eu.emi.security.authn.x509.helpers.proxy.ProxyCertInfoExtension
eu.emi.security.authn.x509.helpers.proxy.RFCProxyCertInfoExtension
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
Proxy cert info extension class.
ProxyCertInfoExtension ::= SEQUENCE { pCPathLenConstraint ProxyCertPathLengthConstraint OPTIONAL, proxyPolicy ProxyPolicy } ProxyCertPathLengthConstraint ::= INTEGER
- Author:
- Joni Hahkala, K. Benedyczak
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The oid of the proxy cert info extension, defined in the RFC 3820.Fields inherited from class eu.emi.security.authn.x509.helpers.proxy.ProxyCertInfoExtension
pathLen, policy
-
Constructor Summary
ConstructorsConstructorDescriptionGenerate a proxy that inherits all rights and that has no cert path length limitations.RFCProxyCertInfoExtension
(byte[] bytes) Constructor that generates instance out of byte array.RFCProxyCertInfoExtension
(int pathLen, ProxyPolicy policy) Generate new proxy certificate info extension with length limit len and policy policy.RFCProxyCertInfoExtension
(org.bouncycastle.asn1.ASN1Sequence seq) Read a proxyCertInfoExtension from the ASN1 sequence. -
Method Summary
Methods inherited from class eu.emi.security.authn.x509.helpers.proxy.ProxyCertInfoExtension
getInstance, getPolicy, getProxyPathLimit
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
RFC_EXTENSION_OID
The oid of the proxy cert info extension, defined in the RFC 3820.- See Also:
-
-
Constructor Details
-
RFCProxyCertInfoExtension
Generate new proxy certificate info extension with length limit len and policy policy. Use negative value if no limit is desired.- Parameters:
pathLen
- the maximum number of proxy certificates to follow this one. If -1 is used then no limit will be set.policy
- the proxy policy extension.
-
RFCProxyCertInfoExtension
public RFCProxyCertInfoExtension()Generate a proxy that inherits all rights and that has no cert path length limitations. -
RFCProxyCertInfoExtension
Constructor that generates instance out of byte array.- Parameters:
bytes
- The byte array to consider as the ASN.1 encoded proxyCertInfo extension.- Throws:
IOException
- thrown in case the parsing of the byte array fails.
-
RFCProxyCertInfoExtension
Read a proxyCertInfoExtension from the ASN1 sequence.- Parameters:
seq
- The sequence containing the extension.- Throws:
IOException
- IO exception
-
-
Method Details
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-