Class RFCProxyCertInfoExtension

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class RFCProxyCertInfoExtension
    extends ProxyCertInfoExtension
    Proxy cert info extension class.
     ProxyCertInfoExtension ::= SEQUENCE { 
              pCPathLenConstraint    ProxyCertPathLengthConstraint OPTIONAL, 
              proxyPolicy            ProxyPolicy }
      
         ProxyCertPathLengthConstraint ::= INTEGER
     
    Author:
    Joni Hahkala, K. Benedyczak
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String RFC_EXTENSION_OID
      The oid of the proxy cert info extension, defined in the RFC 3820.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()  
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RFC_EXTENSION_OID

        public static final java.lang.String RFC_EXTENSION_OID
        The oid of the proxy cert info extension, defined in the RFC 3820.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RFCProxyCertInfoExtension

        public RFCProxyCertInfoExtension​(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.
      • RFCProxyCertInfoExtension

        public RFCProxyCertInfoExtension()
        Generate a proxy that inherits all rights and that has no cert path length limitations.
      • RFCProxyCertInfoExtension

        public RFCProxyCertInfoExtension​(byte[] bytes)
                                  throws java.io.IOException
        Constructor 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.
      • RFCProxyCertInfoExtension

        public RFCProxyCertInfoExtension​(org.bouncycastle.asn1.ASN1Sequence seq)
                                  throws java.io.IOException
        Read a proxyCertInfoExtension from the ASN1 sequence.
        Parameters:
        seq - The sequence containing the extension.
        Throws:
        java.io.IOException - IO exception
    • Method Detail

      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object