Class P11SignerFactory

    • Constructor Detail

      • P11SignerFactory

        public P11SignerFactory()
    • Method Detail

      • setP11CryptServiceFactory

        public void setP11CryptServiceFactory​(P11CryptServiceFactory p11CryptServiceFactory)
      • setSecurityFactory

        public void setSecurityFactory​(SecurityFactory securityFactory)
      • getSupportedSignerTypes

        public Set<String> getSupportedSignerTypes()
        Description copied from interface: SignerFactory
        Retrieves the types of supported signers.
        Specified by:
        getSupportedSignerTypes in interface SignerFactory
        Returns:
        lower-case types of supported signers, never null.
      • canCreateSigner

        public boolean canCreateSigner​(String type)
        Description copied from interface: SignerFactory
        Indicates whether a signer of the given type can be created or not.
        Specified by:
        canCreateSigner in interface SignerFactory
        Parameters:
        type - Type of the signer. Must not be null.
        Returns:
        true if signer of the given type can be created, false otherwise.
      • newSigner

        public ConcurrentContentSigner newSigner​(String type,
                                                 SignerConf conf,
                                                 X509Cert[] certificateChain)
                                          throws org.xipki.util.exception.ObjectCreationException
        Description copied from interface: SignerFactory
        Creates a new signer.
        Specified by:
        newSigner in interface SignerFactory
        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.