Package com.nimbusds.oauth2.sdk
Class AbstractOptionallyIdentifiedRequest
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.AbstractRequest
-
- com.nimbusds.oauth2.sdk.AbstractOptionallyAuthenticatedRequest
-
- com.nimbusds.oauth2.sdk.AbstractOptionallyIdentifiedRequest
-
- Direct Known Subclasses:
DeviceAuthorizationRequest
,TokenRequest
,TokenRevocationRequest
public abstract class AbstractOptionallyIdentifiedRequest extends AbstractOptionallyAuthenticatedRequest
Abstract request with optional client authentication or client identification.Client authentication methods:
Client identification methods:
- Top level
client_id
parameter.
-
-
Constructor Summary
Constructors Constructor Description AbstractOptionallyIdentifiedRequest(URI uri, ClientAuthentication clientAuth)
Creates a new abstract request with optional client authentication.AbstractOptionallyIdentifiedRequest(URI uri, ClientID clientID)
Creates a new abstract request with optional client identification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientID
getClientID()
Gets the client identifier (for a request from a public client or a request without explicit client authentication).-
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractOptionallyAuthenticatedRequest
getClientAuthentication
-
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nimbusds.oauth2.sdk.Request
toHTTPRequest
-
-
-
-
Constructor Detail
-
AbstractOptionallyIdentifiedRequest
public AbstractOptionallyIdentifiedRequest(URI uri, ClientAuthentication clientAuth)
Creates a new abstract request with optional client authentication.- Parameters:
uri
- The URI of the endpoint (HTTP or HTTPS) for which the request is intended,null
if not specified (if, for example, theRequest.toHTTPRequest()
method will not be used).clientAuth
- The client authentication,null
if none.
-
AbstractOptionallyIdentifiedRequest
public AbstractOptionallyIdentifiedRequest(URI uri, ClientID clientID)
Creates a new abstract request with optional client identification.- Parameters:
uri
- The URI of the endpoint (HTTP or HTTPS) for which the request is intended,null
if not specified (if, for example, theRequest.toHTTPRequest()
method will not be used).clientID
- The client identifier,null
if not specified.
-
-
Method Detail
-
getClientID
public ClientID getClientID()
Gets the client identifier (for a request from a public client or a request without explicit client authentication).- Returns:
- The client identifier,
null
if not specified. - See Also:
AbstractOptionallyAuthenticatedRequest.getClientAuthentication()
-
-