Add ObtainAuthTokenAsString API to C# interface
This commit is contained in:
parent
5bc483cba2
commit
a522f9d982
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user