| 
 | Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-03 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
   oracle.security.crypto.core.KeyPair
oracle.security.crypto.core.KeyPair
public class KeyPair
This class encapsulates a key pair, consisting of a public key and a private key.
| Constructor Summary | |
|---|---|
| KeyPair()Creates a new empty instance. | |
| KeyPair(PublicKey publicKey, PrivateKey privateKey)Creates a new key pair. | |
| Method Summary | |
|---|---|
|  PrivateKey | getPrivate()Returns the private key. | 
|  PublicKey | getPublic()Returns the public key. | 
|  void | readExternal(java.io.ObjectInput is)Reads the input stream and initializes the key pair. | 
|  void | setPrivate(PrivateKey privateKey)Sets the private key. | 
|  void | setPublic(PublicKey publicKey)Sets the public key. | 
|  void | writeExternal(java.io.ObjectOutput os)Writes to the output stream the DER encoding of this object. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public KeyPair()
public KeyPair(PublicKey publicKey,
               PrivateKey privateKey)
| Method Detail | 
|---|
public PublicKey getPublic()
public void setPublic(PublicKey publicKey)
public PrivateKey getPrivate()
public void setPrivate(PrivateKey privateKey)
public void writeExternal(java.io.ObjectOutput os)
                   throws java.io.IOException
writeExternal in interface java.io.Externalizableos - The output stream to write the encoding to.java.io.IOException
public void readExternal(java.io.ObjectInput is)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizableis - The stream to read from.java.io.IOExceptionjava.lang.ClassNotFoundException| 
 | Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-03 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||