public class BasicAuthHandler extends Object implements AuthHandler
| Constructor and Description |
|---|
BasicAuthHandler(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthType()
Gets the auth handler type of the instance.
|
String |
getPassword() |
String |
getUsername() |
void |
setAuthHeader(MessageContext messageContext)
This method will set the Authorization header with the relevant auth token.
|
public String getAuthType()
AuthHandlergetAuthType in interface AuthHandlerpublic void setAuthHeader(MessageContext messageContext) throws AuthException
AuthHandlersetAuthHeader in interface AuthHandlermessageContext - Message context to which the token needs to be setAuthException - In the event of errors when generating new tokenpublic String getUsername()
public String getPassword()
Copyright © 2005–2024 Apache Software Foundation. All rights reserved.