Package net.shibboleth.oidc.profile.core
Class OIDCAuthenticationRequest
java.lang.Object
net.shibboleth.oidc.profile.core.OAuthAuthorizationRequest
net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest
OpenID Connect Authentication Request. Extends the OAuth 2.0 authorization request.
This class is mutable (unlike the Nimbus variant) and not thread-safe.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.oidc.profile.core.OAuthAuthorizationRequest
OAuthAuthorizationRequest.CodeChallengeMethod -
Field Summary
FieldsModifier and TypeFieldDescriptionList of requested authentication context class reference values.private InstantThe time at which the RP made the authentication request to the OP.private static final StringThe default OpenID scope.private DisplayASCII string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.private StringHint to the Authorization Server about the login identifier the End-User might use to log in.private DurationSpecifies the allowable elapsed time in seconds since the last time the End-User was actively authenticated by the OP.private NonceThe nonce.private PromptSpace delimited, case sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent.private booleanDoes the OpenID Provider support the claims parameter? Typically taken from its metadata.private OIDCClaimsRequestIndividual requested claims.private JWTThe request object.private ClaimsSetThe claims used to build a request object JWT.private URIThe request URI. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAcrs()Get the ACRs.Get the time at which this RP sent this authentication request to the OP.Get the display.Get the login_hint parameter.Get the max age.getNonce()Get the nonce.Get the prompt.Get the requested claims.Get the request object.Get the request object claims set.Get the URI to fetch the request object from.booleanDoes the OpenID Provider support the claims parameter?voidSet the ACRs.voidsetAuthnRequestTime(Instant time) Set the time at which this RP sent this authentication request to the OP.voidsetDisplay(Display theDisplay) Set the display.voidsetLoginHint(String hint) Sets the login_hint authorisation request parameter.voidSet the max age.voidSet the nonce.voidSet the prompt.voidsetProviderSupportsClaimsParameter(boolean flag) Sets the support for theclaimsauthorisation request parameter.voidsetRequestedClaims(OIDCClaimsRequest claims) Set any individual requested claims.voidsetRequestObject(JWT object) Set the request object.voidsetRequestObjectClaimsSet(ClaimsSet claims) Set the request object claims set.voidsetRequestURI(URI uri) Set the URI to fetch the request object from.Methods inherited from class net.shibboleth.oidc.profile.core.OAuthAuthorizationRequest
getClientID, getCodeChallenge, getCodeChallengeMethod, getCodeVerifier, getDefaultResponseMode, getEndpointURI, getRedirectURI, getResponseMode, getResponseType, getScope, getState, setCodeChallenge, setCodeChallengeMethod, setCodeVerifier, setDefaultResponseMode, setEndpointURI, setRedirectURI, setResponseMode, setResponseType, setState
-
Field Details
-
DEFAULT_OPENID_SCOPE
The default OpenID scope.- See Also:
-
requestObject
The request object. Optional. -
requestObjectClaimsSet
The claims used to build a request object JWT. Is temporary in nature, once the requestObject is built these should be blanked or not used. -
requestURI
The request URI. Optional. -
requestedClaims
Individual requested claims. -
providerSupportsClaimsParameter
private boolean providerSupportsClaimsParameterDoes the OpenID Provider support the claims parameter? Typically taken from its metadata. -
loginHint
Hint to the Authorization Server about the login identifier the End-User might use to log in. -
display
ASCII string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. -
prompt
Space delimited, case sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent. -
maxAge
Specifies the allowable elapsed time in seconds since the last time the End-User was actively authenticated by the OP. -
acrs
List of requested authentication context class reference values. Values appear in order of preference. Optional. -
nonce
The nonce. -
authnRequestTime
The time at which the RP made the authentication request to the OP.
-
-
Constructor Details
-
OIDCAuthenticationRequest
Constructor.- Parameters:
id- the clientID.
-
-
Method Details
-
setRequestObjectClaimsSet
Set the request object claims set.- Parameters:
claims- the claims- Since:
- 2.2.0
-
getRequestObjectClaimsSet
Get the request object claims set. If the requestObject JWT has already been built, null is returned to indicate these claims are no longer 'live' and will not be reused.- Returns:
- the request object claims
- Since:
- 2.2.0
-
getRequestObject
Get the request object.- Returns:
- Returns the request object.
-
setRequestObject
Set the request object.- Parameters:
object- The request object to set.
-
getRequestURI
Get the URI to fetch the request object from.- Returns:
- Returns the requestURI.
-
setRequestURI
Set the URI to fetch the request object from.- Parameters:
uri- The requestURI to set.
-
setRequestedClaims
Set any individual requested claims.- Parameters:
claims- the requested claims.- Since:
- 2.2.0
-
getRequestedClaims
Get the requested claims.- Returns:
- the requested claims.
- Since:
- 2.2.0
-
providerSupportsClaimsParameter
public boolean providerSupportsClaimsParameter()Does the OpenID Provider support the claims parameter?- Returns:
- true if it does, false otherwise.
- Since:
- 2.2.0
-
setProviderSupportsClaimsParameter
public void setProviderSupportsClaimsParameter(boolean flag) Sets the support for theclaimsauthorisation request parameter.- Parameters:
flag- true if supported, false otherwise.- Since:
- 2.2.0
-
setLoginHint
Sets the login_hint authorisation request parameter.- Parameters:
hint- the login hint- Since:
- 2.2.0
-
getLoginHint
Get the login_hint parameter.- Returns:
- the login_hint parameter
- Since:
- 2.2.0
-
getDisplay
Get the display.- Returns:
- the display.
-
setDisplay
Set the display.- Parameters:
theDisplay- The display to set.
-
getPrompt
Get the prompt.- Returns:
- the prompt.
-
setPrompt
Set the prompt.- Parameters:
thePrompt- The prompt to set.
-
getMaxAge
Get the max age.- Returns:
- the maxAge.
-
setMaxAge
Set the max age.- Parameters:
max- The maxAge to set.
-
getAcrs
Get the ACRs.- Returns:
- the acrs.
-
setAcrs
Set the ACRs.- Parameters:
theAcrs- The acrs to set.
-
getNonce
Get the nonce.- Returns:
- the nonce.
-
setNonce
Set the nonce.- Parameters:
theNonce- The nonce to set.
-
setAuthnRequestTime
Set the time at which this RP sent this authentication request to the OP.- Parameters:
time- the time the request was made- Since:
- 2.2.0
-
getAuthnRequestTime
Get the time at which this RP sent this authentication request to the OP.- Returns:
- the time the request was made
- Since:
- 2.2.0
-