Agent System POND 1.2 (28.2.2002)

FIM.Util.Crypto
Class NamedKeyAndCertificate

java.lang.Object
  |
  +--FIM.Util.Crypto.NamedKeyAndCertificate
All Implemented Interfaces:
Serializable

public final class NamedKeyAndCertificate
extends Object
implements Serializable

A certificate and the corresponding private key is associated to a name. Can be normally serialized (certificate and the key will be stored and retrieved through a factory).

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Serialized Form

Constructor Summary
NamedKeyAndCertificate(String name, PrivateKey priv, Certificate cert)
          Creates a new private key and certificate associated to a name.
 
Method Summary
 Certificate getCertificate()
          Retrieve the certificate.
 String getName()
          Retrieve the name of this keypair.
 PrivateKey getPrivateKey()
          Retrieve the private key.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedKeyAndCertificate

public NamedKeyAndCertificate(String name,
                              PrivateKey priv,
                              Certificate cert)
Creates a new private key and certificate associated to a name. The name and a certificate must be provided, the private key is optional.
Parameters:
name - the name of the certificate and the private key
priv - the private key
cert - the certificate
Method Detail

getName

public String getName()
Retrieve the name of this keypair.
Returns:
the name of the keypair

getPrivateKey

public PrivateKey getPrivateKey()
Retrieve the private key.
Returns:
the private key (might be null if none contained)

getCertificate

public Certificate getCertificate()
Retrieve the certificate.
Returns:
the certificate

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.