de.javawi.jstun.attribute
Class Password

java.lang.Object
  extended by de.javawi.jstun.attribute.MessageAttribute
      extended by de.javawi.jstun.attribute.Password
All Implemented Interfaces:
MessageAttributeInterface

public class Password
extends MessageAttribute


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.javawi.jstun.attribute.MessageAttributeInterface
MessageAttributeInterface.MessageAttributeType
 
Field Summary
 
Fields inherited from interface de.javawi.jstun.attribute.MessageAttributeInterface
CHANGEDADDRESS, CHANGEREQUEST, DUMMY, ERRORCODE, MAPPEDADDRESS, MESSAGEINTEGRITY, PASSWORD, REFLECTEDFROM, RESPONSEADDRESS, SOURCEADDRESS, UNKNOWNATTRIBUTE, USERNAME
 
Constructor Summary
Password()
           
Password(String password)
           
 
Method Summary
 byte[] getBytes()
           
 String getPassword()
           
static Password parse(byte[] data)
           
 void setPassword(String password)
           
 
Methods inherited from class de.javawi.jstun.attribute.MessageAttribute
getLength, getType, intToType, parseCommonHeader, setType, typeToInteger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Password

public Password()

Password

public Password(String password)
Method Detail

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getBytes

public byte[] getBytes()
                throws UtilityException
Specified by:
getBytes in class MessageAttribute
Throws:
UtilityException

parse

public static Password parse(byte[] data)