|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.auth.ClientAuthentication
public abstract class ClientAuthentication
Base abstract class for client authentication at the Token endpoint.
Related specifications:
Constructor Summary | |
---|---|
protected |
ClientAuthentication(ClientAuthenticationMethod method)
Creates a new abstract client authentication. |
Method Summary | |
---|---|
abstract void |
applyTo(HTTPRequest httpRequest)
Applies the authentication to the specified HTTP request by setting its Authorization header and/or POST entity-body parameters (according to the implemented client authentication method). |
ClientAuthenticationMethod |
getMethod()
Gets the client authentication method. |
static ClientAuthentication |
parse(HTTPRequest httpRequest)
Parses the specified HTTP request for a supported client authentication (see ClientAuthenticationMethod ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ClientAuthentication(ClientAuthenticationMethod method)
method
- The client authentication method. Must not be
null
.Method Detail |
---|
public ClientAuthenticationMethod getMethod()
public static ClientAuthentication parse(HTTPRequest httpRequest) throws ParseException
ClientAuthenticationMethod
). This method
is intended to aid parsing of authenticated
TokenRequest
s.
httpRequest
- The HTTP request to parse. Must not be
null
.
null
if none or
the method is not supported.
ParseException
- If the inferred client authentication
couldn't be parsed.public abstract void applyTo(HTTPRequest httpRequest) throws SerializeException
httpRequest
- The HTTP request. Must not be null
.
SerializeException
- If the client authentication parameters
couldn't be applied to the HTTP request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |