Class SecurityProvider


  • public class SecurityProvider
    extends java.lang.Object
    Singleton which provides a security provider.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.Provider getProvider()
      Returns the provider to be used for advanced encrypting/decrypting.
      static void setProvider​(java.security.Provider provider)
      Set the provider to be used for advanced encrypting/decrypting.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getProvider

        public static java.security.Provider getProvider()
                                                  throws java.io.IOException
        Returns the provider to be used for advanced encrypting/decrypting. Default is the BouncyCastleProvider.
        Returns:
        the security provider
        Throws:
        java.io.IOException - if the default provider can't be instantiated
      • setProvider

        public static void setProvider​(java.security.Provider provider)
        Set the provider to be used for advanced encrypting/decrypting.
        Parameters:
        provider - the security provider