Package com.authlete.jaxrs
Class BackchannelAuthenticationRequestHandler.Params
- java.lang.Object
-
- com.authlete.jaxrs.BackchannelAuthenticationRequestHandler.Params
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BackchannelAuthenticationRequestHandler
public static class BackchannelAuthenticationRequestHandler.Params extends Object implements Serializable
Parameters passed to theBackchannelAuthenticationRequestHandler.handle(Params)method.- Since:
- 2.79
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Params()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthorization()Get the value of theAuthorizationheader in the backchannel authentication request.StringgetClientAttestation()Get the value of theOAuth-Client-AttestationHTTP header.StringgetClientAttestationPop()Get the value of theOAuth-Client-Attestation-PoPHTTP header.String[]getClientCertificatePath()Get the path of the client's certificate, each in PEM format.javax.ws.rs.core.MultivaluedMap<String,String>getParameters()Get the request parameters of the backchannel authentication request.BackchannelAuthenticationRequestHandler.ParamssetAuthorization(String authorization)Set the value of theAuthorizationheader in the backchannel authentication request.BackchannelAuthenticationRequestHandler.ParamssetClientAttestation(String jwt)Set the value of theOAuth-Client-AttestationHTTP header.BackchannelAuthenticationRequestHandler.ParamssetClientAttestationPop(String jwt)Set the value of theOAuth-Client-Attestation-PoPHTTP header.BackchannelAuthenticationRequestHandler.ParamssetClientCertificatePath(String[] path)Set the path of the client's certificate, each in PEM format.BackchannelAuthenticationRequestHandler.ParamssetParameters(javax.ws.rs.core.MultivaluedMap<String,String> parameters)Set the request parameters of the backchannel authentication request.
-
-
-
Method Detail
-
getParameters
public javax.ws.rs.core.MultivaluedMap<String,String> getParameters()
Get the request parameters of the backchannel authentication request.- Returns:
- The request parameters.
-
setParameters
public BackchannelAuthenticationRequestHandler.Params setParameters(javax.ws.rs.core.MultivaluedMap<String,String> parameters)
Set the request parameters of the backchannel authentication request.- Parameters:
parameters- The request parameters.- Returns:
thisobject.
-
getAuthorization
public String getAuthorization()
Get the value of theAuthorizationheader in the backchannel authentication request. A pair of client ID and client secret is embedded there when the client authentication method isclient_secret_basic.- Returns:
- The value of the
Authorizationheader.
-
setAuthorization
public BackchannelAuthenticationRequestHandler.Params setAuthorization(String authorization)
Set the value of theAuthorizationheader in the backchannel authentication request. A pair of client ID and client secret is embedded there when the client authentication method isclient_secret_basic.- Parameters:
authorization- The value of theAuthorizationheader.- Returns:
thisobject.
-
getClientCertificatePath
public String[] getClientCertificatePath()
Get the path of the client's certificate, each in PEM format. The first item in the array is the client's certificate itself.- Returns:
- The path of the client's certificate.
- See Also:
- RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens
-
setClientCertificatePath
public BackchannelAuthenticationRequestHandler.Params setClientCertificatePath(String[] path)
Set the path of the client's certificate, each in PEM format. The first item in the array is the client's certificate itself.- Parameters:
path- The path of the client's certificate.- Returns:
thisobject.- See Also:
- RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens
-
getClientAttestation
public String getClientAttestation()
Get the value of theOAuth-Client-AttestationHTTP header.- Returns:
- The value of the
OAuth-Client-AttestationHTTP header. - Since:
- Authlete 3.0
- See Also:
- OAuth 2.0 Attestation-Based Client Authentication
-
setClientAttestation
public BackchannelAuthenticationRequestHandler.Params setClientAttestation(String jwt)
Set the value of theOAuth-Client-AttestationHTTP header.- Parameters:
jwt- The value of theOAuth-Client-AttestationHTTP header.- Returns:
thisobject.- Since:
- Authlete 3.0
- See Also:
- OAuth 2.0 Attestation-Based Client Authentication
-
getClientAttestationPop
public String getClientAttestationPop()
Get the value of theOAuth-Client-Attestation-PoPHTTP header.- Returns:
- The value of the
OAuth-Client-Attestation-PoPHTTP header. - Since:
- Authlete 3.0
- See Also:
- OAuth 2.0 Attestation-Based Client Authentication
-
setClientAttestationPop
public BackchannelAuthenticationRequestHandler.Params setClientAttestationPop(String jwt)
Set the value of theOAuth-Client-Attestation-PoPHTTP header.- Parameters:
jwt- The value of theOAuth-Client-Attestation-PoPHTTP header.- Returns:
thisobject.- Since:
- Authlete 3.0
- See Also:
- OAuth 2.0 Attestation-Based Client Authentication
-
-