Class TokenAuthenticationSecurity
java.lang.Object
org.apereo.cas.token.authentication.TokenAuthenticationSecurity
This is
TokenAuthenticationSecurity.- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic TokenAuthenticationSecurityforRegisteredService(org.apereo.cas.services.RegisteredService registeredService) Create a token security instance for a registered service.generateTokenFor(org.apereo.cas.authentication.Authentication authentication) Generate a token for authentication.org.pac4j.jwt.credentials.authenticator.JwtAuthenticatorCreate a JWT authenticator.org.pac4j.jwt.profile.JwtGeneratorCreate a JWT generator.org.pac4j.core.profile.UserProfilevalidateToken(String token) Validate the token and build the user profile.
-
Method Details
-
generateTokenFor
Generate a token for authentication.- Parameters:
authentication- the authentication- Returns:
- the string
-
validateToken
Validate the token and build the user profile.- Parameters:
token- the token- Returns:
- the user profile
-
forRegisteredService
public static TokenAuthenticationSecurity forRegisteredService(org.apereo.cas.services.RegisteredService registeredService) Create a token security instance for a registered service.- Parameters:
registeredService- the service- Returns:
- the token authentication security
-
toGenerator
public org.pac4j.jwt.profile.JwtGenerator toGenerator()Create a JWT generator.- Returns:
- the jwt generator
-
toAuthenticator
public org.pac4j.jwt.credentials.authenticator.JwtAuthenticator toAuthenticator()Create a JWT authenticator.- Returns:
- the jwt authenticator
-