Class JcaKeyBoxBuilder


  • public class JcaKeyBoxBuilder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JcaKeyBoxBuilder()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JcaKeyBox build​(byte[] encoding)  
      JcaKeyBox build​(java.io.InputStream input)  
      JcaKeyBoxBuilder setProvider​(java.lang.String providerName)
      Sets the provider to use to obtain cryptographic primitives.
      JcaKeyBoxBuilder setProvider​(java.security.Provider provider)
      Sets the provider to use to obtain cryptographic primitives.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JcaKeyBoxBuilder

        public JcaKeyBoxBuilder()
        Default constructor.
    • Method Detail

      • setProvider

        public JcaKeyBoxBuilder setProvider​(java.security.Provider provider)
        Sets the provider to use to obtain cryptographic primitives.
        Parameters:
        provider - the JCA provider to use.
        Returns:
        the current builder.
      • setProvider

        public JcaKeyBoxBuilder setProvider​(java.lang.String providerName)
        Sets the provider to use to obtain cryptographic primitives.
        Parameters:
        providerName - the name of the JCA provider to use.
        Returns:
        the current builder.
      • build

        public JcaKeyBox build​(java.io.InputStream input)
                        throws java.security.NoSuchProviderException,
                               java.security.NoSuchAlgorithmException,
                               java.io.IOException
        Throws:
        java.security.NoSuchProviderException
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • build

        public JcaKeyBox build​(byte[] encoding)
                        throws java.security.NoSuchProviderException,
                               java.security.NoSuchAlgorithmException,
                               java.io.IOException
        Throws:
        java.security.NoSuchProviderException
        java.security.NoSuchAlgorithmException
        java.io.IOException