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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
private java.lang.String id
- The id of this Nonce used in the protocol description (for example Na or Nb)
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
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