- All Superinterfaces:
IuApiCredentials
,IuPrincipalIdentity
,Principal
Provides client-side support for the use of HTTP Basic authentication as API
credentials.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyTo
(HttpRequest.Builder httpRequestBuilder) Applies the client's API credentials to an HTTP request.Returns the password to be used for HTTP Basic authentication.Returns the username to be used for HTTP Basic authentication.Methods inherited from interface edu.iu.auth.IuPrincipalIdentity
getAuthTime, getExpires, getIssuedAt, getSubject, implies
-
Method Details
-
getUsername
String getUsername()Returns the username to be used for HTTP Basic authentication.- Returns:
- the username
-
getPassword
String getPassword()Returns the password to be used for HTTP Basic authentication.- Returns:
- the password
-
applyTo
Description copied from interface:IuApiCredentials
Applies the client's API credentials to an HTTP request.- Specified by:
applyTo
in interfaceIuApiCredentials
- Parameters:
httpRequestBuilder
-HttpRequest.Builder
- Throws:
IuAuthenticationException
- If authenticated credentials have expired or been revoked since initial authorization
-