Uses of Interface
java.security.Key
-
Packages that use Key Package Description java.security Provides the classes and interfaces for the security framework.java.security.interfaces Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.javax.crypto Provides the classes and interfaces for cryptographic operations.javax.crypto.interfaces Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.javax.crypto.spec Provides classes and interfaces for key specifications and algorithm parameter specifications.javax.security.auth.kerberos This package contains utility classes related to the Kerberos network authentication protocol.javax.xml.crypto Common classes for XML cryptography.javax.xml.crypto.dsig.dom DOM-specific classes for thejavax.xml.crypto.dsigpackage. -
-
Uses of Key in java.security
Subinterfaces of Key in java.security Modifier and Type Interface Description interfacePrivateKeyA private key.interfacePublicKeyA public key.Methods in java.security that return Key Modifier and Type Method Description abstract KeyKeyStoreSpi. engineGetKey(String alias, char[] password)Returns the key associated with the given alias, using the given password to recover it.protected abstract KeyKeyFactorySpi. engineTranslateKey(Key key)Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.KeyKeyStore. getKey(String alias, char[] password)Returns the key associated with the given alias, using the given password to recover it.KeyKeyFactory. translateKey(Key key)Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.Methods in java.security with parameters of type Key Modifier and Type Method Description protected abstract <T extends KeySpec>
TKeyFactorySpi. engineGetKeySpec(Key key, Class<T> keySpec)Returns a specification (key material) of the given key object.abstract voidKeyStoreSpi. engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Assigns the given key to the given alias, protecting it with the given password.protected abstract KeyKeyFactorySpi. engineTranslateKey(Key key)Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.<T extends KeySpec>
TKeyFactory. getKeySpec(Key key, Class<T> keySpec)Returns a specification (key material) of the given key object.booleanAlgorithmConstraints. permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters)Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.booleanAlgorithmConstraints. permits(Set<CryptoPrimitive> primitives, Key key)Determines whether a key is granted permission for the specified cryptographic primitives.voidKeyStore. setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Assigns the given key to the given alias, protecting it with the given password.KeyKeyFactory. translateKey(Key key)Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory. -
Uses of Key in java.security.interfaces
Subinterfaces of Key in java.security.interfaces Modifier and Type Interface Description interfaceDSAPrivateKeyThe standard interface to a DSA private key.interfaceDSAPublicKeyThe interface to a DSA public key.interfaceECPrivateKeyThe interface to an elliptic curve (EC) private key.interfaceECPublicKeyThe interface to an elliptic curve (EC) public key.interfaceRSAMultiPrimePrivateCrtKeyThe interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.interfaceRSAPrivateCrtKeyThe interface to an RSA private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.interfaceRSAPrivateKeyThe interface to an RSA private key.interfaceRSAPublicKeyThe interface to an RSA public key.interfaceXECPrivateKeyAn interface for an elliptic curve private key as defined by RFC 7748.interfaceXECPublicKeyAn interface for an elliptic curve public key as defined by RFC 7748. -
Uses of Key in javax.crypto
Subinterfaces of Key in javax.crypto Modifier and Type Interface Description interfaceSecretKeyA secret (symmetric) key.Methods in javax.crypto that return Key Modifier and Type Method Description KeyKeyAgreement. doPhase(Key key, boolean lastPhase)Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.protected abstract KeyKeyAgreementSpi. engineDoPhase(Key key, boolean lastPhase)Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.protected KeyCipherSpi. engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)Unwrap a previously wrapped key.KeyCipher. unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)Unwrap a previously wrapped key.Methods in javax.crypto with parameters of type Key Modifier and Type Method Description KeyKeyAgreement. doPhase(Key key, boolean lastPhase)Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.protected abstract KeyKeyAgreementSpi. engineDoPhase(Key key, boolean lastPhase)Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement.protected intCipherSpi. engineGetKeySize(Key key)Returns the key size of the given key object in bits.protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.protected abstract voidCipherSpi. engineInit(int opmode, Key key, SecureRandom random)Initializes this cipher with a key and a source of randomness.protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.protected abstract voidExemptionMechanismSpi. engineInit(Key key)Initializes this exemption mechanism with a key.protected abstract voidExemptionMechanismSpi. engineInit(Key key, AlgorithmParameters params)Initializes this exemption mechanism with a key and a set of algorithm parameters.protected abstract voidExemptionMechanismSpi. engineInit(Key key, AlgorithmParameterSpec params)Initializes this exemption mechanism with a key and a set of algorithm parameters.protected abstract voidKeyAgreementSpi. engineInit(Key key, SecureRandom random)Initializes this key agreement with the given key and source of randomness.protected abstract voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.protected abstract voidMacSpi. engineInit(Key key, AlgorithmParameterSpec params)Initializes the MAC with the given (secret) key and algorithm parameters.protected byte[]CipherSpi. engineWrap(Key key)Wrap a key.PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey)Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey, String providerName)Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey, Provider provider)Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.ObjectSealedObject. getObject(Key key)Retrieves the original (encapsulated) object.ObjectSealedObject. getObject(Key key, String provider)Retrieves the original (encapsulated) object.voidCipher. init(int opmode, Key key)Initializes this cipher with a key.voidCipher. init(int opmode, Key key, AlgorithmParameters params)Initializes this cipher with a key and a set of algorithm parameters.voidCipher. init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.voidCipher. init(int opmode, Key key, SecureRandom random)Initializes this cipher with a key and a source of randomness.voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params)Initializes this cipher with a key and a set of algorithm parameters.voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.voidExemptionMechanism. init(Key key)Initializes this exemption mechanism with a key.voidExemptionMechanism. init(Key key, AlgorithmParameters params)Initializes this exemption mechanism with a key and a set of algorithm parameters.voidExemptionMechanism. init(Key key, AlgorithmParameterSpec params)Initializes this exemption mechanism with a key and a set of algorithm parameters.voidKeyAgreement. init(Key key)Initializes this key agreement with the given key, which is required to contain all the algorithm parameters required for this key agreement.voidKeyAgreement. init(Key key, SecureRandom random)Initializes this key agreement with the given key and source of randomness.voidKeyAgreement. init(Key key, AlgorithmParameterSpec params)Initializes this key agreement with the given key and set of algorithm parameters.voidKeyAgreement. init(Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.voidMac. init(Key key)Initializes thisMacobject with the given key.voidMac. init(Key key, AlgorithmParameterSpec params)Initializes thisMacobject with the given key and algorithm parameters.booleanExemptionMechanism. isCryptoAllowed(Key key)Returns whether the result blob has been generated successfully by this exemption mechanism.byte[]Cipher. wrap(Key key)Wrap a key. -
Uses of Key in javax.crypto.interfaces
Subinterfaces of Key in javax.crypto.interfaces Modifier and Type Interface Description interfaceDHPrivateKeyThe interface to a Diffie-Hellman private key.interfaceDHPublicKeyThe interface to a Diffie-Hellman public key.interfacePBEKeyThe interface to a PBE key. -
Uses of Key in javax.crypto.spec
Classes in javax.crypto.spec that implement Key Modifier and Type Class Description classSecretKeySpecThis class specifies a secret key in a provider-independent fashion. -
Uses of Key in javax.security.auth.kerberos
Classes in javax.security.auth.kerberos that implement Key Modifier and Type Class Description classEncryptionKeyThis class encapsulates an EncryptionKey used in Kerberos.classKerberosKeyThis class encapsulates a long term secret key for a Kerberos principal. -
Uses of Key in javax.xml.crypto
Methods in javax.xml.crypto that return Key Modifier and Type Method Description KeyKeySelectorResult. getKey()Returns the selected key.Methods in javax.xml.crypto with parameters of type Key Modifier and Type Method Description static KeySelectorKeySelector. singletonKeySelector(Key key)Returns aKeySelectorthat always selects the specified key, regardless of theKeyInfopassed to it. -
Uses of Key in javax.xml.crypto.dsig.dom
Constructors in javax.xml.crypto.dsig.dom with parameters of type Key Constructor Description DOMSignContext(Key signingKey, Node parent)Creates aDOMSignContextwith the specified signing key and parent node.DOMSignContext(Key signingKey, Node parent, Node nextSibling)Creates aDOMSignContextwith the specified signing key, parent and next sibling nodes.DOMValidateContext(Key validatingKey, Node node)Creates aDOMValidateContextcontaining the specified key and node.
-