com.microsoft.tfs.core.clients.webservices
Class SecurityIdentifier

java.lang.Object
  extended by com.microsoft.tfs.core.clients.webservices.SecurityIdentifier

public class SecurityIdentifier
extends java.lang.Object

Represents a Windows Security Identifier (SID). Can be used on all platforms.

See Also:
(SID String Format Syntax)
Thread-safety:
immutable

Field Summary
static byte MAX_SUB_AUTHORITIES
           
static int REVISION
          The SID revision this class understands.
 
Constructor Summary
SecurityIdentifier(byte[] binaryForm, int offset)
          Constructs a SecurityIdentifier from a .NET compatible byte array form.
SecurityIdentifier(long authority, long[] subAuthorities)
           
SecurityIdentifier(java.lang.String sddlForm)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getBinaryForm()
           
 java.lang.String getSDDLForm()
           
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final int REVISION
The SID revision this class understands.

Constant Field Value:
1
See Also:
Constant Field Values

MAX_SUB_AUTHORITIES

public static final byte MAX_SUB_AUTHORITIES
Constant Field Value:
15
See Also:
Constant Field Values
Constructor Detail

SecurityIdentifier

public SecurityIdentifier(byte[] binaryForm,
                          int offset)
Constructs a SecurityIdentifier from a .NET compatible byte array form.


SecurityIdentifier

public SecurityIdentifier(java.lang.String sddlForm)

SecurityIdentifier

public SecurityIdentifier(long authority,
                          long[] subAuthorities)
Method Detail

getBinaryForm

public byte[] getBinaryForm()

getSDDLForm

public java.lang.String getSDDLForm()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

public java.lang.String getValue()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


© 2015 Microsoft. All rights reserved.