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 Details

    • GrouperTrustedJwtConfigKey

      public GrouperTrustedJwtConfigKey()
  • Method Details

    • isExpired

      public boolean isExpired()
      see if this key is expired
      Returns:
    • getPublicKey

      public String getPublicKey()
      encrypted public key of trusted authority grouper.jwt.trusted.configId.key.0.publicKey = abc123
      Returns:
      public key
    • setPublicKey

      public void setPublicKey(String publicKey1)
      encrypted public key of trusted authority grouper.jwt.trusted.configId.key.0.publicKey = abc123
      Parameters:
      publicKey1 -
    • getEncryptionType

      public String getEncryptionType()
      grouper.jwt.trusted.configId.key.0.encryptionType = RS-256
      Returns:
      encryption type
    • setEncryptionType

      public void setEncryptionType(String encryptionType)
      grouper.jwt.trusted.configId.key.0.encryptionType = RS-256
      Parameters:
      encryptionType -
    • getExpiresOn

      public Date 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

      public void setExpiresOn(Date expiresOn)
      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

      public RSAPublicKey getPublicKeyById(String keyId)
    • getPrivateKey

      public RSAPrivateKey getPrivateKey()
    • getPrivateKeyId

      public String getPrivateKeyId()