Class BasicExpiringJWTSharedSecretCredentialFactoryBean

    • Field Detail

      • secret

        @Nullable
        private String secret
        The secret to use when creating a BasicJWKCredential.
      • jcaAlg

        @Nullable
        private String jcaAlg
        The JCA algorithm to set on the SecretKey. Defaults to AES.
      • alg

        @Nullable
        private com.nimbusds.jose.Algorithm alg
        The key management algorithm ('alg') this credential supports.
      • credentialExpiresAt

        @Nonnull
        private Duration credentialExpiresAt
        When the credential expires in seconds since 1970-01-01T0:0:0Z. 0 seconds represents no expiry. Defaults to 0.
    • Constructor Detail

      • BasicExpiringJWTSharedSecretCredentialFactoryBean

        public BasicExpiringJWTSharedSecretCredentialFactoryBean()
        Constructor.
    • Method Detail

      • setCredentialExpiresAt

        public void setCredentialExpiresAt​(@Nonnull
                                           Duration expiresAt)
        Set the expiry in seconds since 1970-01-01T0:0:0Z.
        Parameters:
        expiresAt - the expiry.
      • setJcaAlg

        public void setJcaAlg​(@Nullable
                              String javaAlg)
        Set the JCA Algorithm to associate with this credential.
        Parameters:
        javaAlg - the jca algorithm.
      • setAlg

        public void setAlg​(@Nonnull
                           com.nimbusds.jose.Algorithm algorithm)
        Set the algorithm 'alg' associated with this credential.
        Parameters:
        algorithm - the algorithm.
      • setSecret

        public void setSecret​(@Nonnull @NotEmpty
                              String secretIn)
        Set the secret to use.
        Parameters:
        secretIn - the secret