Class RsaTokenKey


  • public final class RsaTokenKey
    extends TokenKey
    Required validation properties for tokens generated with RSA algorithm.
    • Constructor Detail

      • RsaTokenKey

        public RsaTokenKey()
    • Method Detail

      • alg

        public AccessPolicyRsaAlgo alg()
        Get the alg property: RSA algorithm to be used: RS256, RS384 or RS512.
        Returns:
        the alg value.
      • withAlg

        public RsaTokenKey withAlg​(AccessPolicyRsaAlgo alg)
        Set the alg property: RSA algorithm to be used: RS256, RS384 or RS512.
        Parameters:
        alg - the alg value to set.
        Returns:
        the RsaTokenKey object itself.
      • n

        public String n()
        Get the n property: RSA public key modulus.
        Returns:
        the n value.
      • withN

        public RsaTokenKey withN​(String n)
        Set the n property: RSA public key modulus.
        Parameters:
        n - the n value to set.
        Returns:
        the RsaTokenKey object itself.
      • e

        public String e()
        Get the e property: RSA public key exponent.
        Returns:
        the e value.
      • withE

        public RsaTokenKey withE​(String e)
        Set the e property: RSA public key exponent.
        Parameters:
        e - the e value to set.
        Returns:
        the RsaTokenKey object itself.
      • withKid

        public RsaTokenKey withKid​(String kid)
        Set the kid property: JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
        Overrides:
        withKid in class TokenKey
        Parameters:
        kid - the kid value to set.
        Returns:
        the TokenKey object itself.