Class BasicAuthProvider
- java.lang.Object
-
- com.intergral.deep.agent.api.auth.BasicAuthProvider
-
- All Implemented Interfaces:
IAuthProvider
,IDeepPlugin
,Ordered
public class BasicAuthProvider extends Object implements IDeepPlugin, IAuthProvider
This is anIAuthProvider
that will attach basic authorization to the outbound requests.This provider can be set using
service.auth.provider=com.intergral.deep.agent.api.auth.BasicAuthProvider
. The username and password that is configured onto requests can be set with the setting:service.username=yourusername
service.password=yourpassword
These values are then base64 encoded and attached to the outbound requests as the
authorization
header.
-
-
Constructor Summary
Constructors Constructor Description BasicAuthProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDeepPlugin
configure(ISettings settings, IReflection reflection)
This allows for the plugin to retain a reference to the settings for Deep and allows access to theIReflection
service to perform reflection operations.Map<String,String>
provide()
Provide the headers that should be attached to the GRPC calls.
-
-
-
Method Detail
-
configure
public IDeepPlugin configure(ISettings settings, IReflection reflection)
Description copied from interface:IDeepPlugin
This allows for the plugin to retain a reference to the settings for Deep and allows access to theIReflection
service to perform reflection operations.- Specified by:
configure
in interfaceIDeepPlugin
- Parameters:
settings
- the settings for Deepreflection
- a service to allow easier access to reflection- Returns:
this
, or a new instance of a plugin- See Also:
IReflection
,ISettings
-
provide
public Map<String,String> provide()
Description copied from interface:IAuthProvider
Provide the headers that should be attached to the GRPC calls.- Specified by:
provide
in interfaceIAuthProvider
- Returns:
- a Map of the header values
-
-