Class GrouperTrustedJwtConfigKey
java.lang.Object
edu.internet2.middleware.grouper.authentication.GrouperTrustedJwtConfigKey
- All Implemented Interfaces:
com.auth0.jwt.interfaces.RSAKeyProvider
public class GrouperTrustedJwtConfigKey
extends Object
implements com.auth0.jwt.interfaces.RSAKeyProvider
key in a trusted jwt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongrouper.jwt.trusted.configId.key.0.encryptionType = RS-256optional: yyyy-mm-dd hh:mm:ss.SSS grouper.jwt.trusted.configId.key.0.expiresOn = 2021-11-01 00:00:00.000encrypted public key of trusted authority grouper.jwt.trusted.configId.key.0.publicKey = abc123getPublicKeyById(String keyId) booleansee if this key is expiredvoidsetEncryptionType(String encryptionType) grouper.jwt.trusted.configId.key.0.encryptionType = RS-256voidsetExpiresOn(Date expiresOn) optional: yyyy-mm-dd hh:mm:ss.SSS grouper.jwt.trusted.configId.key.0.expiresOn = 2021-11-01 00:00:00.000voidsetPublicKey(String publicKey1) encrypted public key of trusted authority grouper.jwt.trusted.configId.key.0.publicKey = abc123booleanverify(com.auth0.jwt.interfaces.DecodedJWT decodedJwt)
-
Constructor Details
-
GrouperTrustedJwtConfigKey
public GrouperTrustedJwtConfigKey()
-
-
Method Details
-
isExpired
public boolean isExpired()see if this key is expired- Returns:
-
getPublicKey
encrypted public key of trusted authority grouper.jwt.trusted.configId.key.0.publicKey = abc123- Returns:
- public key
-
setPublicKey
encrypted public key of trusted authority grouper.jwt.trusted.configId.key.0.publicKey = abc123- Parameters:
publicKey1-
-
getEncryptionType
grouper.jwt.trusted.configId.key.0.encryptionType = RS-256- Returns:
- encryption type
-
setEncryptionType
grouper.jwt.trusted.configId.key.0.encryptionType = RS-256- Parameters:
encryptionType-
-
getExpiresOn
optional: yyyy-mm-dd hh:mm:ss.SSS grouper.jwt.trusted.configId.key.0.expiresOn = 2021-11-01 00:00:00.000- Returns:
-
setExpiresOn
optional: yyyy-mm-dd hh:mm:ss.SSS grouper.jwt.trusted.configId.key.0.expiresOn = 2021-11-01 00:00:00.000- Parameters:
expiresOn-
-
verify
public boolean verify(com.auth0.jwt.interfaces.DecodedJWT decodedJwt) - Parameters:
decodedJwt-- Returns:
- if this jwt is verified
-
getPublicKeyById
-
getPrivateKey
-
getPrivateKeyId
-