Class ProxyCertInfoExtension

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int pathLen
      The sub proxy path length, default is not limited.
      protected ProxyPolicy policy
      The underlying policy object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ProxyCertInfoExtension getInstance​(java.security.cert.X509Certificate cert)
      Tries to generate ProxyCertInfoExtension object from the provided certificate.
      ProxyPolicy getPolicy()
      Get the policy object of this extension.
      int getProxyPathLimit()
      Get the proxy certificate path length limit of this extension, if set.
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

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

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

      • pathLen

        protected int pathLen
        The sub proxy path length, default is not limited.
      • policy

        protected ProxyPolicy policy
        The underlying policy object.
    • Constructor Detail

      • ProxyCertInfoExtension

        public ProxyCertInfoExtension()
    • Method Detail

      • getInstance

        public static ProxyCertInfoExtension getInstance​(java.security.cert.X509Certificate cert)
                                                  throws java.io.IOException
        Tries to generate ProxyCertInfoExtension object from the provided certificate. Returns null if the certificate has no proxy extension (draft or rfc).
        Parameters:
        cert - certificate
        Returns:
        instance intialized from the certificate object
        Throws:
        java.io.IOException - IO exception
      • getProxyPathLimit

        public int getProxyPathLimit()
        Get the proxy certificate path length limit of this extension, if set.
        Returns:
        The number of allowed proxy certificates in the chain allowed after this certificate. -1 if not set.
      • getPolicy

        public ProxyPolicy getPolicy()
        Get the policy object of this extension.
        Returns:
        The ProxyPolicy object.