Class AuthenticationTokenWrapper

  • All Implemented Interfaces:
    Serializable, org.apache.shiro.authc.AuthenticationToken

    public class AuthenticationTokenWrapper
    extends Object
    implements org.apache.shiro.authc.AuthenticationToken
    A Shiro authentication token that wrap a SeedStack authentication token.
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationTokenWrapper

        public AuthenticationTokenWrapper​(org.seedstack.seed.security.AuthenticationToken seedToken)
        Constructor with the SeedStack token.
        Parameters:
        seedToken - the seed token to wrap.
    • Method Detail

      • getPrincipal

        public Object getPrincipal()
        Specified by:
        getPrincipal in interface org.apache.shiro.authc.AuthenticationToken
      • getCredentials

        public Object getCredentials()
        Specified by:
        getCredentials in interface org.apache.shiro.authc.AuthenticationToken
      • getSeedToken

        public org.seedstack.seed.security.AuthenticationToken getSeedToken()
        Gives the seed authentication token.
        Returns:
        the seed authentication token.