Class PKIClient


  • public class PKIClient
    extends java.lang.Object
    • 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
    • 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)
      • getEntity

        public <T> T getEntity​(javax.ws.rs.core.Response response,
                               javax.ws.rs.core.GenericType<T> clazz)
      • isVerbose

        public boolean isVerbose()
      • setVerbose

        public void setVerbose​(boolean verbose)
      • downloadCACertChain

        public byte[] downloadCACertChain​(java.lang.String serverURI)
                                   throws javax.xml.parsers.ParserConfigurationException,
                                          org.xml.sax.SAXException,
                                          java.io.IOException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
      • downloadCACertChain

        public byte[] downloadCACertChain​(java.lang.String uri,
                                          java.lang.String servletPath)
                                   throws javax.xml.parsers.ParserConfigurationException,
                                          org.xml.sax.SAXException,
                                          java.io.IOException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
      • 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)