public class LocalName extends ADStructure
| Constructor and Description |
|---|
LocalName()
Constructor to create an instance with length=1, type=0x09
(Complete Local Name), and data=
null. |
LocalName(int length,
int type,
byte[] data)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalName()
Get the local name.
|
boolean |
isComplete()
Check if this AD Structure represents "Complete Local Name".
|
boolean |
isShortened()
Check if this AD Structure represents "Shortened Local Name".
|
String |
toString() |
public LocalName()
null.public LocalName(int length,
int type,
byte[] data)
length - The length of the AD structure. The value should be
data.length + 1.type - The AD type. The value should be either 0x08
(Shortened Local Name) or 0x09 (Complete Local Name).data - The AD data.public boolean isShortened()
This method returns true when ADStructure.getType() returns 0x08.
true if this AD structure represents
"Shortened Local Name".public boolean isComplete()
This method returns true when ADStructure.getType() returns 0x09.
true if this AD structure represents
"Complete Local Name".public String getLocalName()
public String toString()
toString in class ADStructureCopyright © 2016. All rights reserved.