Oracle Security Developer Tools Crypto Java API Reference
10g (10.1.4.0.1)

B28171-01


oracle.security.crypto.core
Class KeyPair

java.lang.Object
  extended byoracle.security.crypto.core.KeyPair


public class KeyPair
extends java.lang.Object

This class encapsulates a key pair, consisting of a public key and a private key.


Constructor Summary
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 setPrivate(PrivateKey privateKey)
          Sets the private key.
 void setPublic(PublicKey publicKey)
          Sets the public key.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

KeyPair

public KeyPair(PublicKey publicKey,
               PrivateKey privateKey)
Creates a new key pair.

Method Detail

getPublic

public PublicKey getPublic()
Returns the public key.

setPublic

public void setPublic(PublicKey publicKey)
Sets the public key.

getPrivate

public PrivateKey getPrivate()
Returns the private key.

setPrivate

public void setPrivate(PrivateKey privateKey)
Sets the private key.

Oracle Security Developer Tools Crypto Java API Reference
10g (10.1.4.0.1)

B28171-01


Copyright © 2005 ,2006 , Oracle. All rights reserved.