core
Class Nonce

java.lang.Object
  |
  +--core.Message
        |
        +--core.Nonce
All Implemented Interfaces:
IMessage, INonce

public class Nonce
extends Message
implements INonce

This class represents a Nonce

Author:
Xavier Didelot

Field Summary
private  java.lang.String id
          The id of this Nonce used in the protocol description (for example Na or Nb)
 
Fields inherited from class core.Message
 
Constructor Summary
Nonce()
           
Nonce(java.lang.Integer b)
          This method creates a fresh Nonce of 10 bytes and returns a message containing a Base64 string
Nonce(java.lang.String string)
           
 
Method Summary
protected  java.lang.Object clone()
          Creates a copy of the Nonce
 java.lang.String getId()
          Return the Id of this Nonce
 void setId(java.lang.String string)
          Set the Id of this Nonce
 
Methods inherited from class core.Message
addMessage, decrypt, encrypt, equals, getAllFields, getString, hash, setString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface core.IMessage
addMessage, decrypt, encrypt, equals, getAllFields, getString, hash, setString
 

Field Detail

id

private java.lang.String id
The id of this Nonce used in the protocol description (for example Na or Nb)

Constructor Detail

Nonce

public Nonce(java.lang.String string)

Nonce

public Nonce()

Nonce

public Nonce(java.lang.Integer b)
This method creates a fresh Nonce of 10 bytes and returns a message containing a Base64 string

Method Detail

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Creates a copy of the Nonce

Overrides:
clone in class Message
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getId

public java.lang.String getId()
Return the Id of this Nonce

Specified by:
getId in interface INonce
Returns:
the Id of this Nonce

setId

public void setId(java.lang.String string)
Set the Id of this Nonce

Specified by:
setId in interface INonce
Parameters:
string - the new Id of this Nonce