Class BasicJWKCredentialFactoryBean

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
      • jwkResource

        @Nullable
        private Resource jwkResource
        Where the private key is to be found.
      • failIfResourceIsNull

        private boolean failIfResourceIsNull
        Should the factory throw an exception if the resource is null?.
      • symmetricKeyAlgorithm

        private String symmetricKeyAlgorithm
        The JCA algorithm name to use if the key to be converted is a symmetric key. Default is AES.
    • Constructor Detail

      • BasicJWKCredentialFactoryBean

        public BasicJWKCredentialFactoryBean()
        Constructor.
    • Method Detail

      • setSymmetricKeyAlgorithm

        public void setSymmetricKeyAlgorithm​(@Nonnull @NotEmpty
                                             String algorithm)
        Set the JCA algorithm name to use if the key to be converted is a symmetric key.
        Parameters:
        algorithm - the JCA name
      • setFailIfResourceIsNull

        public void setFailIfResourceIsNull​(boolean flag)
        Should the factory throw an exeception if the resource is null?
        Parameters:
        flag - the flag
      • setResource

        public void setResource​(@Nonnull
                                Resource res)
        Set the resource containing the private key.
        Parameters:
        res - private key resource, never null