java.lang.Object java.security.KeyPair
public final class KeyPair
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.
PublicKey
, PrivateKey
, Serialized Form
KeyPair(PublicKey publicKey, PrivateKey privateKey)
PrivateKey
getPrivate()
PublicKey
getPublic()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
KeyPair
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
Note that this constructor only stores references to the public and private key components in the generated key pair. This is safe, because Key
objects are immutable.
publicKey
- the public key.
privateKey
- the private key.
public PublicKey getPublic()
public PrivateKey getPrivate()
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4