Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.3.1
PREV NEXT | FRAMES NO FRAMES

## Uses of Interface
java.security.Key

Packages that use Key
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.

Uses of Key in java.security

Subinterfaces of Key in java.security
`interface` | `PrivateKey` A private key.
`interface` | `PublicKey` A public key.

Methods in java.security that return Key
`Key` | `KeyFactory.translateKey(Key key)` Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
`Key` | `KeyStore.getKey(String alias, char[] password)` Returns the key associated with the given alias, using the given password to recover it.
`abstract Key` | `KeyStoreSpi.engineGetKey(String alias, char[] password)` Returns the key associated with the given alias, using the given password to recover it.
`protected abstract Key` | `KeyFactorySpi.engineTranslateKey(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
`KeySpec` | `KeyFactory.getKeySpec(Key key, Class keySpec)` Returns a specification (key material) of the given key object.
`Key` | `KeyFactory.translateKey(Key key)` Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
`void` | `KeyStore.setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)` Assigns the given key to the given alias, protecting it with the given password.
`abstract void` | `KeyStoreSpi.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 KeySpec` | `KeyFactorySpi.engineGetKeySpec(Key key, Class keySpec)` Returns a specification (key material) of the given key object.
`protected abstract Key` | `KeyFactorySpi.engineTranslateKey(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
`interface` | `DSAPrivateKey` The standard interface to a DSA private key.
`interface` | `DSAPublicKey` The interface to a DSA public key.
`interface` | `RSAPrivateCrtKey` The interface to an RSA private key, as defined in the PKCS#1 standard, using the Chinese Remainder Theorem (CRT) information values.
`interface` | `RSAPrivateKey` The interface to an RSA private key.
`interface` | `RSAPublicKey` The interface to an RSA public key.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.3.1
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.