Class KTSGenerateKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class KTSGenerateKeySpec
    extends KTSKeySpec
    KeySpec for use with secret key generation with a SecretKeyFactory supporting KTS.
    • Method Detail

      • getPublicKey

        public java.security.PublicKey getPublicKey()
        Return the public key to be used to encrypt the secret and make the encapsulation.
        Returns:
        the public key to be used for secret encryption.
      • getSecureRandom

        public java.security.SecureRandom getSecureRandom()
        Return the SecureRandom which will be used to generate the secret.
        Returns:
        the source of randomness for the secret.