Interface SignerFactory

    • Method Detail

      • getSupportedSignerTypes

        Set<String> getSupportedSignerTypes()
        Retrieves the types of supported signers.
        Returns:
        lower-case types of supported signers, never null.
      • canCreateSigner

        boolean canCreateSigner​(String type)
        Indicates whether a signer of the given type can be created or not.
        Parameters:
        type - Type of the signer. Must not be null.
        Returns:
        true if signer of the given type can be created, false otherwise.
      • newSigner

        ConcurrentContentSigner newSigner​(String type,
                                          SignerConf conf,
                                          X509Cert[] certificateChain)
                                   throws org.xipki.util.exception.ObjectCreationException
        Creates a new signer.
        Parameters:
        type - Type of the signer. Must not be null.
        conf - Configuration of the signer. Must not be null.
        certificateChain - Certificate chain of the signer. Could be null.
        Returns:
        new signer.
        Throws:
        org.xipki.util.exception.ObjectCreationException - if signer could not be created.