com.atlassian.crowd.directory.ldap.mapper.attribute
Class SIDUtils

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.mapper.attribute.SIDUtils

public class SIDUtils
extends Object

Convert back and forth between the binary and the String representation of SIDs.

Since:
v2.7

Constructor Summary
SIDUtils()
           
 
Method Summary
static String getLastRidFromSid(String sid)
           
static String substituteLastRidInSid(String baseSid, String rid)
          Replaces the last subauthority of a SID with a new RID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIDUtils

public SIDUtils()
Method Detail

substituteLastRidInSid

public static String substituteLastRidInSid(String baseSid,
                                            String rid)
Replaces the last subauthority of a SID with a new RID.

Parameters:
baseSid - a SID in its String format (i.e., not a binary SID)
rid - a RID
Returns:
a SID that has the last subauthority replaced with the new RID.

getLastRidFromSid

public static String getLastRidFromSid(String sid)
Parameters:
sid - a SID in its String format (i.e, not a binary SID)
Returns:
the RID of the last subauthority of the SID


Copyright © 2014 Atlassian. All Rights Reserved.