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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 keypriv
- the private keycert
- the certificate
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
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.