FIM.Util.Crypto
Class NamedKeyPair
java.lang.Object
|
+--FIM.Util.Crypto.NamedKeyPair
- public final class NamedKeyPair
- extends Object
- implements Serializable
A KeyPair
which is associated to a name. Can be normally serialized (the keys
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 |
NamedKeyPair
public NamedKeyPair(String name,
KeyPair kp)
- Creates a new keypair associated to a name. The private key may be empty but a public key
must be present at least.
- Parameters:
name
- the name of the keypairkp
- the keypair
getName
public String getName()
- Retrieve the name of this keypair.
- Returns:
- the name of the keypair
getKeyPair
public KeyPair getKeyPair()
- Retrieve the keypair itself.
- Returns:
- the keypair
Submit a bug
Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.