Agent System POND 1.0 (1.7.2000)

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

Constructor Summary
NamedKeyPair(String name, KeyPair kp)
          Creates a new keypair associated to a name.
 
Method Summary
 KeyPair getKeyPair()
          Retrieve the keypair itself.
 String getName()
          Retrieve the name of this keypair.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 keypair
kp - the keypair
Method Detail

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

Agent System POND 1.0 (1.7.2000)

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.