Class EncryptedKeyResolver


  • public class EncryptedKeyResolver
    extends KeyResolverSpi
    The EncryptedKeyResolver is not a generic resolver. It can only be for specific instantiations, as the key being unwrapped will always be of a particular type and will always have been wrapped by another key which needs to be recursively resolved. The EncryptedKeyResolver can therefore only be instantiated with an algorithm. It can also be instantiated with a key (the KEK) or will search the static KeyResolvers to find the appropriate key.
    • Constructor Detail

      • EncryptedKeyResolver

        public EncryptedKeyResolver​(String algorithm)
        Constructor for use when a KEK needs to be derived from a KeyInfo list
        Parameters:
        algorithm -
      • EncryptedKeyResolver

        public EncryptedKeyResolver​(String algorithm,
                                    Key kek)
        Constructor used for when a KEK has been set
        Parameters:
        algorithm -
        kek -