Package com.nimbusds.oauth2.sdk
Class AbstractOptionallyAuthenticatedRequest
java.lang.Object
com.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.oauth2.sdk.AbstractOptionallyAuthenticatedRequest
- Direct Known Subclasses:
AbstractOptionallyIdentifiedRequest,PushedAuthorizationRequest,RequestObjectPOSTRequest,TokenIntrospectionRequest
Abstract request with optional client authentication. Supports more than
one client authentication method, for deployments that allow migration of
the authentication methods for a client, for example, from
client_secret_basic to private_key_jwt.
Client authentication methods:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOptionallyAuthenticatedRequest(URI endpoint, ClientAuthentication clientAuth) Creates a new abstract request with optional client authentication.AbstractOptionallyAuthenticatedRequest(URI endpoint, List<ClientAuthentication> clientAuthCandidates) Creates a new abstract request with optional client authentication candidates. -
Method Summary
Modifier and TypeMethodDescriptionReturns the client authentication.Returns the client authentication candidates.Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURIMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.nimbusds.oauth2.sdk.Request
toHTTPRequest
-
Constructor Details
-
AbstractOptionallyAuthenticatedRequest
Creates a new abstract request with optional client authentication.- Parameters:
endpoint- The URI of the endpoint. May benullif theRequest.toHTTPRequest()method is not going to be used.clientAuth- The client authentication,nullif none.
-
AbstractOptionallyAuthenticatedRequest
public AbstractOptionallyAuthenticatedRequest(URI endpoint, List<ClientAuthentication> clientAuthCandidates) Creates a new abstract request with optional client authentication candidates.- Parameters:
endpoint- The URI of the endpoint. May benullif theRequest.toHTTPRequest()method is not going to be used.clientAuthCandidates- The client authentication candidates,nullif none.
-
-
Method Details
-
getClientAuthentication
Returns the client authentication.- Returns:
- The client authentication,
nullif none.
-
getClientAuthenticationCandidates
Returns the client authentication candidates. This method is intended for deployments that allow migration of the authentication methods for a client, for example fromclient_secret_basictoprivate_key_jwt.- Returns:
- The client authentication candidates, empty list if none.
-