Class SecurityTools


  • public final class SecurityTools
    extends Object
    Tool class for creating java.security related objects, ie. objects which use the Provider service for creating security algorithms.

    Using the default like e.g. KeyFactory.getInstance(String) is not recommended, since 3rd party jar files may set additional providers for algorithms. Although they may promise to be compliant, they are not tested and may lead to errors at various critical parts in our system. Example: WildFly uses Bouncy Castle which does not like padding in RSA encrypted passwords in our configuration.