public class Base64EncodedCredentials extends Object implements Credentials
Credentials encoded in Base 64| Constructor and Description |
|---|
Base64EncodedCredentials(Credentials actualCredentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
disposeCredentials()
Disposes the credentials making them unusable
|
String |
getAuthenticationString()
Gets the raw credentialS String if exists, a String representiation of the credentials used otherwise
|
String |
getAuthenticationType()
The credentials type
|
String |
getHeaderString()
Gets the credential string to be set in the header of the message
|
boolean |
isPrepared() |
void |
prepareCredentials()
Prepares the credentials to be sent with the message: if the credentials are
string based and should be set in an header, they are returned as a String object
|
public Base64EncodedCredentials(Credentials actualCredentials)
public void prepareCredentials()
prepareCredentials in interface Credentialspublic String getAuthenticationType()
getAuthenticationType in interface Credentialspublic String getAuthenticationString()
getAuthenticationString in interface Credentialspublic String getHeaderString()
getHeaderString in interface Credentialspublic void disposeCredentials()
CredentialsdisposeCredentials in interface Credentialspublic boolean isPrepared()
isPrepared in interface CredentialsCopyright © 2017. All Rights Reserved.