@Typed(value=OAuth2AuthenticationMechanism.class) public class OAuth2AuthenticationMechanism extends Object implements javax.security.enterprise.authentication.mechanism.http.HttpAuthenticationMechanism
| Constructor and Description |
|---|
OAuth2AuthenticationMechanism()
Creates an OAuth2AuthenticationMechanism.
|
OAuth2AuthenticationMechanism(OAuth2AuthenticationDefinition definition)
Creates an OAuth2AuthenticationMechanism that has been defined using an annotation
|
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthenticationMechanism |
setDefinition(OAuth2AuthenticationDefinition definition)
Sets the properties of the OAuth2AuthenticationMechanism as defined in an
OAuth2AuthenticationDefinition annotation. |
javax.security.enterprise.AuthenticationStatus |
validateRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.security.enterprise.authentication.mechanism.http.HttpMessageContext httpMessageContext) |
public OAuth2AuthenticationMechanism()
If this constructor is used then {@link #setDefinition(OAuth2AuthenticationDefinition) must be called before any requests are validated.
public OAuth2AuthenticationMechanism(OAuth2AuthenticationDefinition definition)
definition - public OAuth2AuthenticationMechanism setDefinition(OAuth2AuthenticationDefinition definition)
OAuth2AuthenticationDefinition annotation.definition - public javax.security.enterprise.AuthenticationStatus validateRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.security.enterprise.authentication.mechanism.http.HttpMessageContext httpMessageContext)
throws javax.security.enterprise.AuthenticationException
validateRequest in interface javax.security.enterprise.authentication.mechanism.http.HttpAuthenticationMechanismjavax.security.enterprise.AuthenticationExceptionCopyright © 2019. All rights reserved.