Index

A C D E F G H I J L M O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accessToken - Variable in record class com.irurueta.authserver.serviceclient.device.TokenResponse
The field for the accessToken record component.
accessToken() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Returns the value of the accessToken record component.
AUTHORIZATION_PENDING - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Error code meaning the user has not decided yet.

C

CliConfiguration - Class in com.irurueta.authserver.serviceclient
Beans of the client-credentials and token-exchange runners, present only under those profiles.
CliConfiguration() - Constructor for class com.irurueta.authserver.serviceclient.CliConfiguration
 
client - Variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
The client.
ClientCredentialsCli - Class in com.irurueta.authserver.serviceclient
Command-line client of the OAuth 2.0 client credentials grant: obtains an access token with its own credentials, lists the documents the resource server shows it and prints each one as a JSON line.
ClientCredentialsCli() - Constructor for class com.irurueta.authserver.serviceclient.ClientCredentialsCli
 
clientId - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
The field for the clientId record component.
clientId() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Returns the value of the clientId record component.
cliOutput() - Method in class com.irurueta.authserver.serviceclient.CliConfiguration
Output of the runners: the standard output.
CliOutput - Class in com.irurueta.authserver.serviceclient
Writes the lines a person (or a test) reads from the client-credentials and token-exchange runners.
CliOutput() - Constructor for class com.irurueta.authserver.serviceclient.CliOutput
 
CliProperties - Record Class in com.irurueta.authserver.serviceclient
Settings of the client-credentials and token-exchange runners (service-client.cli.*).
CliProperties(boolean, String) - Constructor for record class com.irurueta.authserver.serviceclient.CliProperties
Creates an instance of a CliProperties record class.
clock - Variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
The clock.
com.irurueta.authserver.serviceclient - package com.irurueta.authserver.serviceclient
Non-interactive client that obtains tokens with the client credentials grant and calls the resource server.
com.irurueta.authserver.serviceclient.device - package com.irurueta.authserver.serviceclient.device
Command-line client of the OAuth 2.0 device authorization grant (RFC 8628): requests a device code, shows the user code and verification URI, and polls the token endpoint until the user approves the request.

D

DEFAULT_CLIENT_ID - Static variable in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
The public client the development data seeds for this flow.
DEFAULT_EXPIRES_IN_SECONDS - Static variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Lifetime assumed when the server does not say (the Spring Authorization Server default is five minutes).
DEFAULT_INTERVAL_SECONDS - Static variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Polling interval assumed when the server does not say (RFC 8628 section 3.2).
DEFAULT_SCOPE - Static variable in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Scopes the seeded client may request.
description - Variable in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
The field for the description record component.
description() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
Returns the value of the description record component.
DEVICE_AUTHORIZATION_PATH - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Path of the device authorization endpoint.
DEVICE_CODE_GRANT - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Grant type of the token request (RFC 8628 section 3.4).
DeviceAuthorization - Record Class in com.irurueta.authserver.serviceclient.device
Response of the device authorization endpoint (RFC 8628 section 3.2).
DeviceAuthorization(String, String, String, String, long, long) - Constructor for record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Validates the mandatory members and applies the defaults of the optional ones.
DeviceAuthorizationClient - Class in com.irurueta.authserver.serviceclient.device
Calls the standard device flow endpoints of the authorization server.
DeviceAuthorizationClient() - Constructor for class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
 
DeviceAuthorizationClient.OAuthError - Record Class in com.irurueta.authserver.serviceclient.device
Error response of the token endpoint (RFC 6749 section 5.2).
deviceCode - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
The field for the deviceCode record component.
deviceCode() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns the value of the deviceCode record component.
DeviceFlowCli - Class in com.irurueta.authserver.serviceclient.device
Command-line client of the OAuth 2.0 device authorization grant (RFC 8628): requests a device code, prints the user code and the verification URI, then polls the token endpoint honouring interval, slow_down, authorization_pending and expired_token.
DeviceFlowCli() - Constructor for class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
 
deviceFlowClock() - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration
Clock used to detect that the device code expired.
DeviceFlowConfiguration - Class in com.irurueta.authserver.serviceclient.device
Beans of the device flow CLI, present only under the "device-flow" profile.
DeviceFlowConfiguration() - Constructor for class com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration
 
DeviceFlowException - Exception Class in com.irurueta.authserver.serviceclient.device
The device flow could not finish: the request failed, the user denied it, the device code expired or the program was interrupted.
DeviceFlowException(String) - Constructor for exception class com.irurueta.authserver.serviceclient.device.DeviceFlowException
Creates the exception.
DeviceFlowException(String, Throwable) - Constructor for exception class com.irurueta.authserver.serviceclient.device.DeviceFlowException
Creates the exception.
deviceFlowOutput() - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration
Output of the CLI: the standard output.
DeviceFlowOutput - Class in com.irurueta.authserver.serviceclient.device
Writes the lines a person (or a test) reads.
DeviceFlowOutput() - Constructor for class com.irurueta.authserver.serviceclient.device.DeviceFlowOutput
 
DeviceFlowProperties - Record Class in com.irurueta.authserver.serviceclient.device
Settings of the device flow CLI, bound from device-flow.* (command-line arguments or environment variables such as DEVICE_FLOW_ISSUER).
DeviceFlowProperties(URI, String, String, boolean) - Constructor for record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Validates the issuer and applies the defaults.
deviceFlowRestClient(DeviceFlowProperties) - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration
HTTP client aimed at the authorization server.
deviceFlowSleeper() - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration
Sleeper that really blocks the thread.

E

equals(Object) - Method in record class com.irurueta.authserver.serviceclient.CliProperties
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Granted
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Pending
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.SlowDown
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Indicates whether some other object is "equal to" this one.
error - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
The field for the error record component.
error - Variable in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
The field for the error record component.
error() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
Returns the value of the error record component.
error() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
Returns the value of the error record component.
errorDescription - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
The field for the errorDescription record component.
errorDescription() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
Returns the value of the errorDescription record component.
EXPIRED_TOKEN - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
The expired token.
expiresIn - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
The field for the expiresIn record component.
expiresIn - Variable in record class com.irurueta.authserver.serviceclient.device.TokenResponse
The field for the expiresIn record component.
expiresIn() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns the value of the expiresIn record component.
expiresIn() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Returns the value of the expiresIn record component.

F

Failed(String, String) - Constructor for record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
Creates an instance of a Failed record class.
failure(PollOutcome.Failed) - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
Maps a final error of the token endpoint to an exception.

G

Granted(TokenResponse) - Constructor for record class com.irurueta.authserver.serviceclient.device.PollOutcome.Granted
Creates an instance of a Granted record class.

H

hashCode() - Method in record class com.irurueta.authserver.serviceclient.CliProperties
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Granted
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Pending
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.SlowDown
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Returns a hash code value for this object.

I

interval - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
The field for the interval record component.
interval() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns the value of the interval record component.
INVALID_RESPONSE - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
The invalid response.
isBlank(String) - Static method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Tells whether a text is missing or blank.
issuer - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
The field for the issuer record component.
issuer() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Returns the value of the issuer record component.

J

jsonMapper - Variable in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
Writes a document as JSON.
jsonMapper - Variable in class com.irurueta.authserver.serviceclient.TokenExchangeCli
Writes a document as JSON.

L

line(String) - Method in class com.irurueta.authserver.serviceclient.CliOutput
Writes one line and flushes it.
line(String) - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowOutput
Writes one line and flushes it, so that it is visible while the CLI keeps polling.
listDocumentsOnBehalfOfUseCase - Variable in class com.irurueta.authserver.serviceclient.TokenExchangeCli
Lists the documents of a user.
listDocumentsUseCase - Variable in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
Lists the documents.

M

main(String[]) - Static method in class com.irurueta.authserver.serviceclient.ServiceClientApplication
Starts the application.

O

OAuthError(String, String) - Constructor for record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
Creates an instance of a OAuthError record class.
output - Variable in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
Writes the lines.
output - Variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
The output.
output - Variable in class com.irurueta.authserver.serviceclient.TokenExchangeCli
Writes the lines.

P

pause(Duration) - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
Waits, turning an interruption into a DeviceFlowException.
Pending() - Constructor for record class com.irurueta.authserver.serviceclient.device.PollOutcome.Pending
Creates an instance of a Pending record class.
poll(DeviceAuthorization) - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
Polls until the user approves the request, the code expires or the server refuses.
PollOutcome - Interface in com.irurueta.authserver.serviceclient.device
What one poll of the token endpoint answered (RFC 8628 section 3.5).
PollOutcome.Failed - Record Class in com.irurueta.authserver.serviceclient.device
Any other error (access_denied, expired_token, ...): the flow is over.
PollOutcome.Granted - Record Class in com.irurueta.authserver.serviceclient.device
The user approved the request.
PollOutcome.Pending - Record Class in com.irurueta.authserver.serviceclient.device
authorization_pending: the user has not decided yet; poll again after the same interval.
PollOutcome.SlowDown - Record Class in com.irurueta.authserver.serviceclient.device
slow_down: polling too fast; the interval grows by DeviceFlowCli.SLOW_DOWN_INCREMENT_SECONDS.
pollToken(String) - Method in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Polls the token endpoint once.
printAccessToken - Variable in record class com.irurueta.authserver.serviceclient.CliProperties
The field for the printAccessToken record component.
printAccessToken - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
The field for the printAccessToken record component.
printAccessToken() - Method in record class com.irurueta.authserver.serviceclient.CliProperties
Returns the value of the printAccessToken record component.
printAccessToken() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Returns the value of the printAccessToken record component.
PROFILE - Static variable in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
Name of the Spring profile that turns the runner on.
PROFILE - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration
Name of the Spring profile that turns the CLI on.
PROFILE - Static variable in class com.irurueta.authserver.serviceclient.TokenExchangeCli
Name of the Spring profile that turns the runner on.
properties - Variable in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
The settings.
properties - Variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
The properties.
properties - Variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
The properties.
properties - Variable in class com.irurueta.authserver.serviceclient.TokenExchangeCli
The settings.

R

refreshToken - Variable in record class com.irurueta.authserver.serviceclient.device.TokenResponse
The field for the refreshToken record component.
refreshToken() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Returns the value of the refreshToken record component.
requestDeviceAuthorization() - Method in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Asks the server for a device code and a user code.
restClient - Variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
The rest client.
run(String...) - Method in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
Lists the documents and, when asked, prints the token.
run(String...) - Method in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
Runs the whole flow.
run(String...) - Method in class com.irurueta.authserver.serviceclient.TokenExchangeCli
Exchanges the token, lists the documents and, when asked, prints the exchanged token.

S

scope - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
The field for the scope record component.
scope - Variable in record class com.irurueta.authserver.serviceclient.device.TokenResponse
The field for the scope record component.
scope() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Returns the value of the scope record component.
scope() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Returns the value of the scope record component.
serialVersionUID - Static variable in exception class com.irurueta.authserver.serviceclient.device.DeviceFlowException
The serial version u i d.
ServiceClientApplication - Class in com.irurueta.authserver.serviceclient
Entry point of the service-client application.
ServiceClientApplication() - Constructor for class com.irurueta.authserver.serviceclient.ServiceClientApplication
 
serviceTokens - Variable in class com.irurueta.authserver.serviceclient.ClientCredentialsCli
Gives the token the call used.
serviceTokens - Variable in class com.irurueta.authserver.serviceclient.TokenExchangeCli
Gives the exchanged token.
sleep(Duration) - Method in interface com.irurueta.authserver.serviceclient.device.Sleeper
Blocks the current thread for the given time.
sleeper - Variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
The sleeper.
Sleeper - Interface in com.irurueta.authserver.serviceclient.device
Waits between two polls of the token endpoint.
SLOW_DOWN - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Error code meaning the client polls too fast.
SLOW_DOWN_INCREMENT_SECONDS - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowCli
Seconds added to the polling interval each time the server answers slow_down (RFC 8628 section 3.5).
SlowDown() - Constructor for record class com.irurueta.authserver.serviceclient.device.PollOutcome.SlowDown
Creates an instance of a SlowDown record class.
stream - Variable in class com.irurueta.authserver.serviceclient.CliOutput
The stream.
stream - Variable in class com.irurueta.authserver.serviceclient.device.DeviceFlowOutput
The stream.
subjectToken - Variable in record class com.irurueta.authserver.serviceclient.CliProperties
The field for the subjectToken record component.
subjectToken() - Method in record class com.irurueta.authserver.serviceclient.CliProperties
Returns the value of the subjectToken record component.

T

token - Variable in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Granted
The field for the token record component.
token() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Granted
Returns the value of the token record component.
TOKEN_PATH - Static variable in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Path of the token endpoint.
TokenExchangeCli - Class in com.irurueta.authserver.serviceclient
Command-line client of the OAuth 2.0 token exchange grant (RFC 8693): exchanges the access token of a user, read from the SERVICE_CLIENT_SUBJECT_TOKEN environment variable, for one that names the user as subject and this client as actor, lists the documents the resource server shows that user and prints each one as a JSON line.
TokenExchangeCli() - Constructor for class com.irurueta.authserver.serviceclient.TokenExchangeCli
 
TokenResponse - Record Class in com.irurueta.authserver.serviceclient.device
Successful response of the token endpoint (RFC 6749 section 5.1).
TokenResponse(String, String, String, long, String) - Constructor for record class com.irurueta.authserver.serviceclient.device.TokenResponse
Creates an instance of a TokenResponse record class.
tokenType - Variable in record class com.irurueta.authserver.serviceclient.device.TokenResponse
The field for the tokenType record component.
tokenType() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Returns the value of the tokenType record component.
toOutcome(DeviceAuthorizationClient.OAuthError) - Method in class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient
Maps an error response of the token endpoint to a poll outcome.
toString() - Method in record class com.irurueta.authserver.serviceclient.CliProperties
Describes the settings without the token.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Describes the authorization without the device code, which is a secret.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorizationClient.OAuthError
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceFlowProperties
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Failed
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Granted
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.Pending
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.PollOutcome.SlowDown
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.serviceclient.device.TokenResponse
Hides both tokens so that a log line or a stack trace never leaks them.

U

userCode - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
The field for the userCode record component.
userCode() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns the value of the userCode record component.

V

verificationUri - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
The field for the verificationUri record component.
verificationUri() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns the value of the verificationUri record component.
verificationUriComplete - Variable in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
The field for the verificationUriComplete record component.
verificationUriComplete() - Method in record class com.irurueta.authserver.serviceclient.device.DeviceAuthorization
Returns the value of the verificationUriComplete record component.
A C D E F G H I J L M O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form