Issue #304 Deprecated sid methods

This commit is contained in:
Greg Wilkins 2017-04-28 13:30:49 +02:00
parent 89bb7db58c
commit 90a90d6c76
2 changed files with 3 additions and 0 deletions

View File

@ -585,6 +585,7 @@ public class StringUtil
* @param sidBytes the SID bytes to build from
* @return the string SID
*/
@Deprecated
public static String sidBytesToString(byte[] sidBytes)
{
StringBuilder sidString = new StringBuilder();
@ -634,6 +635,7 @@ public class StringUtil
* @param sidString the string SID
* @return the binary SID
*/
@Deprecated
public static byte[] sidStringToBytes( String sidString )
{
String[] sidTokens = sidString.split("-");

View File

@ -143,6 +143,7 @@ public class StringUtilTest
}
@Test
@Deprecated
public void testSidConversion() throws Exception
{
String sid4 = "S-1-4-21-3623811015-3361044348-30300820";