Package org.jboss.ws.api.annotation
Class AuthMethod
- java.lang.Object
-
- org.jboss.ws.api.annotation.AuthMethod
-
public final class AuthMethod extends Object
The authMethod is used to configure the authentication mechanism for the web service. As a prerequisite to gaining access to any web service which are protected by an authorization constraint, a user must have authenticated using the configured mechanism.- Author:
- Richard Opalka
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASICBasic authentication.static StringCLIENT_CERTClient certificate based authentication.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringvalueOf(String s)Returns string representing correctAuthMethodvalue.
-
-
-
Field Detail
-
BASIC
public static final String BASIC
Basic authentication.- See Also:
- Constant Field Values
-
CLIENT_CERT
public static final String CLIENT_CERT
Client certificate based authentication.- See Also:
- Constant Field Values
-
-
Method Detail
-
valueOf
public static String valueOf(String s)
Returns string representing correctAuthMethodvalue.- Parameters:
s- string to convert.- Returns:
- correct auth method value
- Throws:
IllegalArgumentException- if s is null.
-
-