Class PlayerCertificate

java.lang.Object
  extended byPlayerCertificate
All Implemented Interfaces:
java.io.Serializable

public class PlayerCertificate
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  java.math.BigInteger h
           
private  java.lang.String playerName
           
private  PubRSA publicKey
           
 
Constructor Summary
PlayerCertificate(PubRSA clientPubKey, java.lang.String name, java.math.BigInteger hash)
          Load the player certificate by taking the supplied number, corresponding to the CA-Signed SHA-1 hash of the named player's public key, also take the actualy Public Key for public posting and, as a String the player's Name.
 
Method Summary
 java.lang.String getCertificate()
          Returns the cetrificate itself, as a base32 number string.
 java.lang.String getPlayerName()
          Returns the registered name of the player to which this certificate has been assigned.
 PubRSA getPublicKey()
          Returns the public key object that was registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

h

private java.math.BigInteger h

playerName

private java.lang.String playerName

publicKey

private PubRSA publicKey
Constructor Detail

PlayerCertificate

public PlayerCertificate(PubRSA clientPubKey,
                         java.lang.String name,
                         java.math.BigInteger hash)
Load the player certificate by taking the supplied number, corresponding to the CA-Signed SHA-1 hash of the named player's public key, also take the actualy Public Key for public posting and, as a String the player's Name.

Method Detail

getPlayerName

public java.lang.String getPlayerName()
Returns the registered name of the player to which this certificate has been assigned.


getCertificate

public java.lang.String getCertificate()
Returns the cetrificate itself, as a base32 number string.


getPublicKey

public PubRSA getPublicKey()
Returns the public key object that was registered.