public class HttpAuthenticator extends Object
SecurityDomain
.Modifier and Type | Class and Description |
---|---|
static class |
HttpAuthenticator.Builder
A
Builder to configure and create an instance of HttpAuthenticator . |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate()
Perform authentication for the request.
|
static HttpAuthenticator.Builder |
builder()
Construct and return a new
Builder to configure and create an instance of HttpAuthenticator . |
SecurityIdentity |
login(String username,
String password)
Perform a login for the supplied username and password using the pre-configured mechanism name.
|
public boolean authenticate() throws HttpAuthenticationException
true
if the call should be allowed to continue within the web server, false
if the call should be
returning to the client.HttpAuthenticationException
public SecurityIdentity login(String username, String password)
username
- the username to use for authentication.password
- the password to use for authentication.SecurityIdentity
is authentication and authorization is successful.public static HttpAuthenticator.Builder builder()
Builder
to configure and create an instance of HttpAuthenticator
.Builder
to configure and create an instance of HttpAuthenticator
.Copyright © 2020 JBoss by Red Hat. All rights reserved.