Class SealedMessageDecrypter


  • public class SealedMessageDecrypter
    extends java.lang.Object
    A sealed message decrypter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decrypt​(io.token.proto.common.security.SecurityProtos.SealedMessage message)
      Decrypts the specified message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SealedMessageDecrypter

        public SealedMessageDecrypter​(SecretKeyStore secretKeyStore,
                                      TrustedKeyStore trustedKeyStore)
        Creates a new instance of the decrypter.
        Parameters:
        secretKeyStore - the secret keystore to use
        trustedKeyStore - the trusted keystore to use
      • SealedMessageDecrypter

        public SealedMessageDecrypter​(SecretKeyStore secretKeyStore,
                                      TrustedKeyStore trustedKeyStore,
                                      java.util.Set<io.token.proto.common.security.SecurityProtos.SealedMessage.MethodCase> supportedCrypto)
        Creates a new instance of the decrypter.
        Parameters:
        secretKeyStore - the secret keystore to use
        trustedKeyStore - the trusted keystore to use
        supportedCrypto - supported crypto methods
    • Method Detail

      • decrypt

        public java.lang.String decrypt​(io.token.proto.common.security.SecurityProtos.SealedMessage message)
        Decrypts the specified message.
        Parameters:
        message - the message to be decrypted
        Returns:
        the decrypted payload of the message