Add ObtainAuthTokenAsString API to C# interface

This commit is contained in:
Jim Norman 2006-11-29 10:54:55 +00:00
parent 5bc483cba2
commit a522f9d982

View File

@ -75,6 +75,19 @@ namespace Novell.Casa.Client.Auth
{
}
public static string ObtainAuthTokenAsString(string sService, string sHost)
{
byte[] baToken;
baToken = ObtainAuthToken(sService, sHost, null);
if (baToken != null)
{
return (Encoding.ASCII.GetString(baToken));
}
else
{
return null;
}
}
public static byte[] ObtainAuthToken(string sService, string sHost)
{