T
- the type of token it will holdpublic abstract class AbstractCommunoteAuthenticationToken<T>
extends org.springframework.security.authentication.AbstractAuthenticationToken
Constructor and Description |
---|
AbstractCommunoteAuthenticationToken(Object principal,
T token,
Collection<org.springframework.security.core.GrantedAuthority> authorities)
Allows the creation of a successful authentication.
|
AbstractCommunoteAuthenticationToken(T token)
Creates a token for authentication against Confluence.
|
Modifier and Type | Method and Description |
---|---|
T |
getCredentials()
The credentials is the token retrieved
|
String |
getName()
Returns null because this principal (the token) has no name.
|
Object |
getPrincipal() |
void |
setAuthenticated(boolean authenticated) |
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setDetails, toString
public AbstractCommunoteAuthenticationToken(Object principal, T token, Collection<org.springframework.security.core.GrantedAuthority> authorities)
principal
- the principaltoken
- a token for authenticating the user. The token is stored as credentials.authorities
- the granted authoritiespublic AbstractCommunoteAuthenticationToken(T token)
token
- a token for authenticating the user. The token is stored as credentials.public T getCredentials()
public String getName()
getName
in interface Principal
getName
in class org.springframework.security.authentication.AbstractAuthenticationToken
Principal.getName()
public Object getPrincipal()
public void setAuthenticated(boolean authenticated)
setAuthenticated
in interface org.springframework.security.core.Authentication
setAuthenticated
in class org.springframework.security.authentication.AbstractAuthenticationToken
Copyright © 2019 Communote team. All rights reserved.