Class DraftRFCProxyCertInfoExtension
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- eu.emi.security.authn.x509.helpers.proxy.ProxyCertInfoExtension
-
- eu.emi.security.authn.x509.helpers.proxy.DraftRFCProxyCertInfoExtension
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class DraftRFCProxyCertInfoExtension extends ProxyCertInfoExtension
Proxy cert info extension class.ProxyCertInfoExtension ::= SEQUENCE { proxyPolicy ProxyPolicy, pCPathLenConstraint [1] EXPLICIT ProxyCertPathLengthConstraint OPTIONAL } ProxyCertPathLengthConstraint ::= INTEGER- Author:
- Joni Hahkala, K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDRAFT_EXTENSION_OIDThe oid of the rfc draft proxy cert extension.-
Fields inherited from class eu.emi.security.authn.x509.helpers.proxy.ProxyCertInfoExtension
pathLen, policy
-
-
Constructor Summary
Constructors Constructor Description DraftRFCProxyCertInfoExtension()Generate a proxy that inherits all rights and that has no cert path length limitations.DraftRFCProxyCertInfoExtension(byte[] bytes)Constructor that generates instance out of byte array.DraftRFCProxyCertInfoExtension(int pathLen, ProxyPolicy policy)Generate new proxy certificate info extension with length limit len and policy policy.DraftRFCProxyCertInfoExtension(org.bouncycastle.asn1.ASN1Sequence seq)Read a proxyCertInfoExtension from the ASN1 sequence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()-
Methods inherited from class eu.emi.security.authn.x509.helpers.proxy.ProxyCertInfoExtension
getInstance, getPolicy, getProxyPathLimit
-
-
-
-
Field Detail
-
DRAFT_EXTENSION_OID
public static final java.lang.String DRAFT_EXTENSION_OID
The oid of the rfc draft proxy cert extension.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DraftRFCProxyCertInfoExtension
public DraftRFCProxyCertInfoExtension(int pathLen, ProxyPolicy policy)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.
-
DraftRFCProxyCertInfoExtension
public DraftRFCProxyCertInfoExtension()
Generate a proxy that inherits all rights and that has no cert path length limitations.
-
DraftRFCProxyCertInfoExtension
public DraftRFCProxyCertInfoExtension(byte[] bytes) throws java.io.IOExceptionConstructor that generates instance out of byte array.- Parameters:
bytes- The byte array to consider as the ASN.1 encoded proxyCertInfo extension.- Throws:
java.io.IOException- thrown in case the parsing of the byte array fails.
-
DraftRFCProxyCertInfoExtension
public DraftRFCProxyCertInfoExtension(org.bouncycastle.asn1.ASN1Sequence seq) throws java.io.IOExceptionRead a proxyCertInfoExtension from the ASN1 sequence.- Parameters:
seq- The sequence containing the extension.- Throws:
java.io.IOException- IO exception
-
-