public abstract class Authentication extends Object
| Constructor and Description |
|---|
Authentication() |
| Modifier and Type | Method and Description |
|---|---|
abstract Request |
apply(Request httpRequest)
Applies the authentication on the httpRequest.
|
String |
getErrorMessage()
Returns the error message if the auth credentials are not valid.
|
boolean |
isValid()
Checks if the auth credentials are valid.
|
void |
setErrorMessage(String errorMessage)
Sets the error message for invalid auth credentials.
|
void |
setValidity(boolean isValid)
Sets the validatity of the auth credentials.
|
abstract void |
validate()
Validates the credentials for authentication.
|
public abstract Request apply(Request httpRequest)
httpRequest - the request on which authentication is being applied.public abstract void validate()
public boolean isValid()
public void setValidity(boolean isValid)
isValid - the flag to set for validity.public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage - the error message to set.Copyright © 2023. All rights reserved.