Class AuthenticationTokenWrapper
- java.lang.Object
-
- org.seedstack.seed.security.internal.realms.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 Summary
Constructors Constructor Description AuthenticationTokenWrapper(org.seedstack.seed.security.AuthenticationToken seedToken)Constructor with the SeedStack token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCredentials()ObjectgetPrincipal()org.seedstack.seed.security.AuthenticationTokengetSeedToken()Gives the seed authentication token.
-
-
-
Method Detail
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipalin interfaceorg.apache.shiro.authc.AuthenticationToken
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentialsin interfaceorg.apache.shiro.authc.AuthenticationToken
-
getSeedToken
public org.seedstack.seed.security.AuthenticationToken getSeedToken()
Gives the seed authentication token.- Returns:
- the seed authentication token.
-
-