public class ConfluenceAuthenticationRequest extends Object implements AuthenticationRequest
Constructor and Description |
---|
ConfluenceAuthenticationRequest(String token)
Construct a request based on a token.
|
ConfluenceAuthenticationRequest(String username,
String password)
Construct a request based on Confluence user name and password.
|
Modifier and Type | Method and Description |
---|---|
String |
getPassword() |
String |
getToken() |
String |
getUsername() |
boolean |
isSendTokenAsParameter() |
void |
setSendTokenAsParameter(boolean sendTokenAsParameter) |
public ConfluenceAuthenticationRequest(String token)
token
- the tokenpublic String getPassword()
getPassword
in interface AuthenticationRequest
public String getToken()
public String getUsername()
public boolean isSendTokenAsParameter()
true
, when the parameter should be send via post parameter instead via
header.public void setSendTokenAsParameter(boolean sendTokenAsParameter)
sendTokenAsParameter
- true
, when the parameter should be send via post parameter instead
via header.Copyright © 2019 Communote team. All rights reserved.