aerogear-crypto 0.1.1

org.jboss.aerogear.crypto.keys
Class KeyPair

java.lang.Object
  extended by org.jboss.aerogear.crypto.keys.KeyPair

public class KeyPair
extends Object

Represents a pair of cryptographic keys (a public and a private key) used for asymmetric encryption


Field Summary
private  KeyPair keyPair
           
 
Constructor Summary
KeyPair()
          Initialize the key pair with the standard curve name
 
Method Summary
 PrivateKey getPrivateKey()
          Access to the private key
 PublicKey getPublicKey()
          Access to the public key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyPair

private final KeyPair keyPair
Constructor Detail

KeyPair

public KeyPair()
Initialize the key pair with the standard curve name

Method Detail

getPublicKey

public PublicKey getPublicKey()
Access to the public key

Returns:
the reference to the public key

getPrivateKey

public PrivateKey getPrivateKey()
Access to the private key

Returns:
the reference to the private key

aerogear-crypto 0.1.1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.