base.jdbs.cryptography.asymmetric
Class KeyPair

java.lang.Object
  extended by base.jdbs.cryptography.asymmetric.KeyPair

public class KeyPair
extends java.lang.Object


Constructor Summary
KeyPair(java.lang.Integer id, java.lang.String name, PublicKey publicKey, PrivateKey privateKey, java.security.cert.X509Certificate certificate)
           
 
Method Summary
 java.lang.String alias()
          This method builds an alias for the keypair instance.
 java.security.cert.X509Certificate getCertificate()
           
 java.lang.Integer getId()
           
 java.lang.String getName()
           
 PrivateKey getPrivateKey()
           
 PublicKey getPublicKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyPair

public KeyPair(java.lang.Integer id,
               java.lang.String name,
               PublicKey publicKey,
               PrivateKey privateKey,
               java.security.cert.X509Certificate certificate)
Parameters:
id - The unique keypair's identifier.
name - The keypairs' name.
publicKey - The keypairs'public key.
privateKey - The keypairs' private key.
certificate - The keypairs' certificate.
Method Detail

getId

public java.lang.Integer getId()
Returns:
Returns the id.

getPrivateKey

public PrivateKey getPrivateKey()
Returns:
Returns the privateKey.

getPublicKey

public PublicKey getPublicKey()
Returns:
Returns the publicKey.

getName

public java.lang.String getName()
Returns:
Returns the name.

alias

public java.lang.String alias()
This method builds an alias for the keypair instance.

Returns:
The alias associated to the keypair instance.

getCertificate

public java.security.cert.X509Certificate getCertificate()
Returns:
Returns the certificate.


Copyright © 2006 SF.net. All Rights Reserved.