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()
AuthHandler
getAuthType
in interface AuthHandler
public void setAuthHeader(MessageContext messageContext) throws AuthException
AuthHandler
setAuthHeader
in interface AuthHandler
messageContext
- 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–2023 Apache Software Foundation. All rights reserved.