Package si.mazi.rescu
Class BasicAuthCredentials
java.lang.Object
si.mazi.rescu.BasicAuthCredentials
- All Implemented Interfaces:
ParamsDigest
public class BasicAuthCredentials extends Object implements ParamsDigest
- Author:
- Matija Mazi
This is used as support for HTTP Basic access authentication. Should be used a parameter of a REST interface method, annotated with @HeaderParam("Authorization"), eg: Result getResult(@HeaderParam("Authorization") BasicAuthCredentials credentials);
-
Constructor Summary
Constructors Constructor Description BasicAuthCredentials(String username, String password) -
Method Summary
Modifier and Type Method Description StringdigestParams(RestInvocation restInvocation)
-
Constructor Details
-
Method Details
-
digestParams
- Specified by:
digestParamsin interfaceParamsDigest
-