Class RegisteredClientTokenLifetimes
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.keys.RegisteredClientTokenLifetimes
- All Implemented Interfaces:
SignedTokenLifetimes
@Component
public class RegisteredClientTokenLifetimes
extends Object
implements SignedTokenLifetimes
SignedTokenLifetimes over the registered clients: the longest of the ID-token lifetime and the access-token
lifetimes of the clients that receive self-contained (signed) access tokens. Reference access tokens are opaque and
never signed, so they do not count.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientRegistrationRepositoryPort that stores the registered clients.(package private) static final DurationLifetime of an ID token. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ID_TOKEN_TTL
Lifetime of an ID token. Spring Authorization Server'sJwtGeneratorfixes it at 30 minutes whatever the client settings say, so it is a fact of the framework rather than a setting. -
clientRegistrationRepository
Port that stores the registered clients.
-
-
Constructor Details
-
RegisteredClientTokenLifetimes
public RegisteredClientTokenLifetimes()
-
-
Method Details
-
longest
Description copied from interface:SignedTokenLifetimesFinds the longest lifetime of a signed token (an access or ID token) that any registered client can obtain.- Specified by:
longestin interfaceSignedTokenLifetimes- Returns:
- the longest lifetime; never
nulland never negative.
-