Class SigningKeyAdminController
java.lang.Object
com.irurueta.authserver.authorization.api.web.keys.SigningKeyAdminController
- All Implemented Interfaces:
SigningKeysApi
Administration of the signing keys, as the contract
apis/auth-server/rest-server/auth-server-api-v1.yaml
describes it through the generated SigningKeysApi. Only the public half of each key is ever returned.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ListSigningKeysUseCaseLists the keys.private final SigningKeyDtoMapperMaps the keys onto the generated DTO.private final SigningKeyRotatorRotates the keys.Fields inherited from interface com.irurueta.authserver.authorization.api.web.v1.generated.api.SigningKeysApi
PATH_LIST_SIGNING_KEYS, PATH_ROTATE_SIGNING_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<SigningKeyResponse>> Lists the keys.org.springframework.http.ResponseEntity<List<SigningKeyResponse>> Rotates the keys now, whatever the age of the active key.
-
Field Details
-
listSigningKeysUseCase
Lists the keys. -
signingKeyRotator
Rotates the keys. -
signingKeyDtoMapper
Maps the keys onto the generated DTO.
-
-
Constructor Details
-
SigningKeyAdminController
public SigningKeyAdminController()
-
-
Method Details
-
listSigningKeys
Lists the keys.- Specified by:
listSigningKeysin interfaceSigningKeysApi- Returns:
- every key, without its private half.
-
rotateSigningKeys
Rotates the keys now, whatever the age of the active key.- Specified by:
rotateSigningKeysin interfaceSigningKeysApi- Returns:
- the keys after the rotation, without their private half.
-