Issue #304 Deprecated sid methods
This commit is contained in:
parent
89bb7db58c
commit
90a90d6c76
|
@ -585,6 +585,7 @@ public class StringUtil
|
||||||
* @param sidBytes the SID bytes to build from
|
* @param sidBytes the SID bytes to build from
|
||||||
* @return the string SID
|
* @return the string SID
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static String sidBytesToString(byte[] sidBytes)
|
public static String sidBytesToString(byte[] sidBytes)
|
||||||
{
|
{
|
||||||
StringBuilder sidString = new StringBuilder();
|
StringBuilder sidString = new StringBuilder();
|
||||||
|
@ -634,6 +635,7 @@ public class StringUtil
|
||||||
* @param sidString the string SID
|
* @param sidString the string SID
|
||||||
* @return the binary SID
|
* @return the binary SID
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static byte[] sidStringToBytes( String sidString )
|
public static byte[] sidStringToBytes( String sidString )
|
||||||
{
|
{
|
||||||
String[] sidTokens = sidString.split("-");
|
String[] sidTokens = sidString.split("-");
|
||||||
|
|
|
@ -143,6 +143,7 @@ public class StringUtilTest
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Deprecated
|
||||||
public void testSidConversion() throws Exception
|
public void testSidConversion() throws Exception
|
||||||
{
|
{
|
||||||
String sid4 = "S-1-4-21-3623811015-3361044348-30300820";
|
String sid4 = "S-1-4-21-3623811015-3361044348-30300820";
|
||||||
|
|
Loading…
Reference in New Issue