Package org.dspace.app.rest.security.jwt
Class LoginJWTTokenHandler
java.lang.Object
org.dspace.app.rest.security.jwt.JWTTokenHandler
org.dspace.app.rest.security.jwt.LoginJWTTokenHandler
Class responsible for creating and parsing JSON Web Tokens (JWTs), supports both JWS and JWE
https://jwt.io/
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the configuration property key for the compression enable setting.protected StringGet the configuration property key for the encryption enable setting.protected StringGet the configuration property key for the encryption secret.protected StringGet the configuration property key for the expiration time.protected StringGet the configuration property key for the token secret.Methods inherited from class org.dspace.app.rest.security.jwt.JWTTokenHandler
buildSigningKey, createTokenForEPerson, getCompressionEnabled, getEncryptionKey, getExpirationPeriod, getJwtKey, invalidateToken, isEncryptionEnabled, isValidToken, parseEPersonFromToken, updateSessionSalt
-
Constructor Details
-
LoginJWTTokenHandler
public LoginJWTTokenHandler()
-
-
Method Details
-
getTokenSecretConfigurationKey
Description copied from class:JWTTokenHandlerGet the configuration property key for the token secret.- Specified by:
getTokenSecretConfigurationKeyin classJWTTokenHandler- Returns:
- the configuration property key
-
getEncryptionSecretConfigurationKey
Description copied from class:JWTTokenHandlerGet the configuration property key for the encryption secret.- Specified by:
getEncryptionSecretConfigurationKeyin classJWTTokenHandler- Returns:
- the configuration property key
-
getTokenExpirationConfigurationKey
Description copied from class:JWTTokenHandlerGet the configuration property key for the expiration time.- Specified by:
getTokenExpirationConfigurationKeyin classJWTTokenHandler- Returns:
- the configuration property key
-
getEncryptionEnabledConfigurationKey
Description copied from class:JWTTokenHandlerGet the configuration property key for the encryption enable setting.- Specified by:
getEncryptionEnabledConfigurationKeyin classJWTTokenHandler- Returns:
- the configuration property key
-
getCompressionEnabledConfigurationKey
Description copied from class:JWTTokenHandlerGet the configuration property key for the compression enable setting.- Specified by:
getCompressionEnabledConfigurationKeyin classJWTTokenHandler- Returns:
- the configuration property key
-