public class ConfluenceAuthenticationToken extends AbstractCommunoteAuthenticationToken<String>
Constructor and Description |
---|
ConfluenceAuthenticationToken(Object principal,
String token,
Collection<org.springframework.security.core.GrantedAuthority> authorities)
Allows the creation of a successful authentication.
|
ConfluenceAuthenticationToken(String token,
boolean sendTokenAsParameter)
Creates a token for authentication against Confluence.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSendTokenAsParameter() |
getCredentials, getName, getPrincipal, setAuthenticated
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setDetails, toString
public ConfluenceAuthenticationToken(Object principal, String 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 ConfluenceAuthenticationToken(String token, boolean sendTokenAsParameter)
token
- a token for authenticating the user. The token is stored as credentials.sendTokenAsParameter
- true
, when the token should be send as POST parameter instead header
field.Copyright © 2019 Communote team. All rights reserved.