public class JWTAuthentication extends Object implements Authentication
AuthenticationManager.authenticate(Authentication)
method.Constructor and Description |
---|
JWTAuthentication(org.apache.cxf.rs.security.jose.jwt.JwtClaims claims,
SyncopeAuthenticationDetails details) |
Modifier and Type | Method and Description |
---|---|
Collection<SyncopeGrantedAuthority> |
getAuthorities() |
org.apache.cxf.rs.security.jose.jwt.JwtClaims |
getClaims() |
Object |
getCredentials() |
SyncopeAuthenticationDetails |
getDetails() |
String |
getName() |
Object |
getPrincipal() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean authenticated) |
void |
setUsername(String username) |
public JWTAuthentication(org.apache.cxf.rs.security.jose.jwt.JwtClaims claims, SyncopeAuthenticationDetails details)
public org.apache.cxf.rs.security.jose.jwt.JwtClaims getClaims()
public Collection<SyncopeGrantedAuthority> getAuthorities()
getAuthorities
in interface Authentication
public Object getCredentials()
getCredentials
in interface Authentication
public SyncopeAuthenticationDetails getDetails()
getDetails
in interface Authentication
public Object getPrincipal()
getPrincipal
in interface Authentication
public void setUsername(String username)
public boolean isAuthenticated()
isAuthenticated
in interface Authentication
public void setAuthenticated(boolean authenticated) throws IllegalArgumentException
setAuthenticated
in interface Authentication
IllegalArgumentException
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.