base.jdbs.cryptography.asymmetric
Class KeyPair
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.