Class java.security.KeyPair
java.lang.Object
|
+----java.security.KeyPair
- public final class KeyPair
- extends Object
This class is a simple holder for a key pair (a public key and a
private key). It does not enforce any security, and, when initialized,
should be treated like a PrivateKey.
- See Also:
- PublicKey, PrivateKey
Constructor Summary
|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Constructs a key with the specified public key and private key.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyPair
public KeyPair(PublicKey publicKey,
PrivateKey privateKey)
- Constructs a key with the specified public key and private key.
- Parameters:
publicKey
- the public key.
privateKey
- the private key.
getPublic
public PublicKey getPublic()
- Returns the public key from this key pair.
- Returns:
- the public key.
getPrivate
public PrivateKey getPrivate()
- Returns the private key from this key pair.
- Returns:
- the private key.
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.