Package io.continual.iam.impl.common
Class BasicAuthHelper
java.lang.Object
io.continual.iam.impl.common.BasicAuthHelper
Web systems implementing RESTful APIs with basic auth can use this helper class to
get credentials from the inbound request.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UsernamePasswordCredentialBuild an UsernamePasswordCredential from an inbound HTTP header.
-
Field Details
-
kSetting_AuthHeader
- See Also:
-
-
Constructor Details
-
BasicAuthHelper
public BasicAuthHelper()
-
-
Method Details
-
readUsernamePasswordCredential
Build an UsernamePasswordCredential from an inbound HTTP header.- Parameters:
hr- a header reader to isolate this code from the web technology- Returns:
- username password credential or null if the header is malformed, etc.
-