Class SCTProvider

  • All Implemented Interfaces:
    TokenProvider

    public class SCTProvider
    extends Object
    implements TokenProvider
    A TokenProvider implementation that provides a SecurityContextToken.
    • Constructor Detail

      • SCTProvider

        public SCTProvider()
    • Method Detail

      • getLifetime

        public long getLifetime()
        Return the lifetime of the generated SCT
        Returns:
        the lifetime of the generated SCT
      • setLifetime

        public void setLifetime​(long lifetime)
        Set the lifetime of the generated SCT
        Parameters:
        lifetime - the lifetime of the generated SCT
      • canHandleToken

        public boolean canHandleToken​(String tokenType)
        Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType.
        Specified by:
        canHandleToken in interface TokenProvider
      • canHandleToken

        public boolean canHandleToken​(String tokenType,
                                      String realm)
        Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm. The realm is ignored in this token provider.
        Specified by:
        canHandleToken in interface TokenProvider
      • setReturnEntropy

        public void setReturnEntropy​(boolean returnEntropy)
        Set whether Entropy is returned to the client or not
        Parameters:
        returnEntropy - whether Entropy is returned to the client or not
      • isReturnEntropy

        public boolean isReturnEntropy()
        Get whether Entropy is returned to the client or not
        Returns:
        whether Entropy is returned to the client or not