HttpBearerChallenge.IsBearerChallenge Method (String)
Tests whether an authentication header is a bearer challenge
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public static bool IsBearerChallenge(
string challenge
)
public:
static bool IsBearerChallenge(
String^ challenge
)
static member IsBearerChallenge :
challenge:string -> bool
Public Shared Function IsBearerChallenge (
challenge As String
) As Boolean
Parameters
challenge
Type: System.StringThe authentication header value to test.
Return Value
Type: System.Boolean
true if the header is a bearer challenge; otherwise, false.
Remarks
This method is forgiving: if the parameter is null, or the scheme in the header is missing, then it will simply return false.
See Also
HttpBearerChallenge Class
Microsoft.Azure.KeyVault Namespace
Return to top