Class EncryptedJwt.Builder

    • Method Detail

      • jwks

        public EncryptedJwt.Builder jwks​(JwkKeys jwkKeys,
                                         String kid)
        JwkKeys which should be searched for key with specific kid. This key will be used for content key encryption. Selected Jwk is required to have private key specified otherwise encryption of the content encryption key will not be possible.
        Parameters:
        jwkKeys - jwk keys
        kid - searched kid
        Returns:
        updated builder instance
      • jwk

        public EncryptedJwt.Builder jwk​(Jwk jwk)
        Specific Jwk which should be used for content key encryption. Specific Jwk is required to have private key specified otherwise encryption of the content encryption key will not be possible.
        Parameters:
        jwk - specific jwk
        Returns:
        updated builder instance