Class PKIClient


  • public class PKIClient
    extends java.lang.Object
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • MESSAGE_FORMATS

        public static final java.lang.String[] MESSAGE_FORMATS
      • info

        public Info info
    • Constructor Detail

      • PKIClient

        public PKIClient​(ClientConfig config)
                  throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • PKIClient

        public PKIClient​(ClientConfig config,
                         CryptoProvider crypto)
                  throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • PKIClient

        public PKIClient​(ClientConfig config,
                         CryptoProvider crypto,
                         org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback)
                  throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
    • Method Detail

      • createProxy

        public <T> T createProxy​(java.lang.String subsystem,
                                 java.lang.Class<T> clazz)
                          throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • getSubsystem

        public java.lang.String getSubsystem()
      • getEntity

        public <T> T getEntity​(javax.ws.rs.core.Response response,
                               java.lang.Class<T> clazz)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getEntity

        public <T> T getEntity​(javax.ws.rs.core.Response response,
                               javax.ws.rs.core.GenericType<T> clazz)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • get

        public java.lang.String get​(java.lang.String path)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • post

        public java.lang.String post​(java.lang.String path,
                                     javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> content)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getInfo

        public Info getInfo()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addRejectedCertStatus

        public void addRejectedCertStatus​(java.lang.Integer rejectedCertStatus)
      • setRejectedCertStatuses

        public void setRejectedCertStatuses​(java.util.Collection<java.lang.Integer> rejectedCertStatuses)
      • isRejected

        public boolean isRejected​(java.lang.Integer certStatus)
      • addIgnoredCertStatus

        public void addIgnoredCertStatus​(java.lang.Integer ignoredCertStatus)
      • setIgnoredCertStatuses

        public void setIgnoredCertStatuses​(java.util.Collection<java.lang.Integer> ignoredCertStatuses)
      • isIgnored

        public boolean isIgnored​(java.lang.Integer certStatus)