public class SID
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG
Logger.
|
| Modifier and Type | Method and Description |
|---|---|
SID |
addSubAuthority(byte[] sub)
Adds sub-authority:a principal relative to the IdentifierAuthority.
|
boolean |
equals(java.lang.Object sid) |
byte[] |
getIdentifierAuthority()
Gets identifier authority: 6 bytes describing the entity that created the SID.
|
byte |
getRevision()
Gets revision level of the SID.
|
int |
getSize()
Gets size of the SID byte array form.
|
java.util.List<byte[]> |
getSubAuthorities()
Gets sub-authorities: a list of unsigned 32-bit integers that uniquely identifies a principal
relative to the IdentifierAuthority.
|
int |
getSubAuthorityCount()
Gets sub-authority number: an 8-bit unsigned integer that specifies the number of elements in the SubAuthority
array.
|
int |
hashCode() |
static SID |
newInstance(byte[] identifier)
Instances a new SID with the given identifier authority.
|
static SID |
parse(byte[] src)
Instances a SID instance of the given byte array.
|
SID |
setIdentifierAuthority(byte[] identifierAuthority)
Sets idetifier authority: 6 bytes describing the entity that created the SID.
|
SID |
setRevision(byte revision)
Sets revision level of the SID.
|
byte[] |
toByteArray()
Serializes to byte array.
|
java.lang.String |
toString()
Serializes to string.
|
public static SID newInstance(byte[] identifier)
identifier - identifier authority (6 bytes only).public static SID parse(byte[] src)
src - SID as byte array.public byte getRevision()
public int getSubAuthorityCount()
public byte[] getIdentifierAuthority()
public java.util.List<byte[]> getSubAuthorities()
public int getSize()
public SID setRevision(byte revision)
revision - revision.public SID setIdentifierAuthority(byte[] identifierAuthority)
identifierAuthority - identifier authority.public SID addSubAuthority(byte[] sub)
sub - sub-authority.public byte[] toByteArray()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object sid)
equals in class java.lang.Objectsid - SID to be compared with.public int hashCode()
hashCode in class java.lang.ObjectCopyright © 2015-2018 Tirasa. All Rights Reserved.