Add ObtainAuthTokenAsString API to C# interface
This commit is contained in:
		| @@ -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) | 		public static byte[] ObtainAuthToken(string sService, string sHost) | ||||||
| 		{ | 		{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user