org.ldaptive.ad
Class SecurityIdentifier

java.lang.Object
  extended by org.ldaptive.ad.SecurityIdentifier

public final class SecurityIdentifier
extends Object

Class to represent an active directory SID. Provides conversion from binary to string and vice versa.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Method Summary
static byte[] toBytes(String sid)
          Converts the supplied SID to it's binary format.
static String toString(byte[] sid)
          Converts the supplied SID to it's string format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString

public static String toString(byte[] sid)
Converts the supplied SID to it's string format.

Parameters:
sid - to convert
Returns:
string format of the SID

toBytes

public static byte[] toBytes(String sid)
Converts the supplied SID to it's binary format.

Parameters:
sid - to convert
Returns:
binary format of the SID


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.