| Modifier and Type | Class and Description |
|---|---|
| private class | |
| pack-priv static enum | SecurityContextImpl.
Representation of the current authentication state of the SecurityContext. |
| private class | SecurityContextImpl.
Class responsible for sending the authentication challenges. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AuthenticationMode | |
| private SecurityContextImpl. | |
| private SecurityContextImpl. | authMechanisms
the authentication mechanisms. |
| private final IdentityManager | |
| private static final RuntimePermission | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SecurityContextImpl(final HttpServerExchange exchange, final AuthenticationMode authenticationMode, final IdentityManager identityManager)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addAuthenticationMechanism(final AuthenticationMechanism
The mechanism to add handler)Implements io. Adds an authentication mechanism to this context. |
| private SecurityContextImpl. | |
| public boolean | authenticate()
Implements io. Performs authentication on the request. |
| private boolean | |
| private boolean | |
| public List | getAuthenticationMechanisms()
Implements io.
Deprecated
|
| public IdentityManager | getIdentityManager()
Implements io.
Deprecated
Obtain the associated |
| public boolean | login(final String
The username username, final String The password password)Implements io. Attempts to log the user in using the provided credentials. |
| public void | logout()
Overrides io. Implements io. de-authenticates the current exchange. |
| private SecurityContextImpl. | |
| public void | setProgramaticMechName(final String programaticMechName)
Set the name of the mechanism used for authentication to be reported if authentication was handled programatically. |
| authenticationMode | back to summary |
|---|---|
| private final AuthenticationMode authenticationMode | |
| authenticationState | back to summary |
|---|---|
| private SecurityContextImpl. | |
| authMechanisms | back to summary |
|---|---|
| private SecurityContextImpl. the authentication mechanisms. Note that in order to reduce the allocation of list and iterator structures we use a custom linked list structure. | |
| identityManager | back to summary |
|---|---|
| private final IdentityManager identityManager | |
| PERMISSION | back to summary |
|---|---|
| private static final RuntimePermission PERMISSION | |
| programaticMechName | back to summary |
|---|---|
| private String programaticMechName | |
| SecurityContextImpl | back to summary |
|---|---|
| public SecurityContextImpl(final HttpServerExchange exchange, final IdentityManager identityManager) | |
| SecurityContextImpl | back to summary |
|---|---|
| public SecurityContextImpl(final HttpServerExchange exchange, final AuthenticationMode authenticationMode, final IdentityManager identityManager) | |
| addAuthenticationMechanism | back to summary |
|---|---|
| public void addAuthenticationMechanism(final AuthenticationMechanism handler) Implements io. Doc from io. Adds an authentication mechanism to this context. When
| |
| attemptAuthentication | back to summary |
|---|---|
| private SecurityContextImpl. | |
| authenticate | back to summary |
|---|---|
| public boolean authenticate() Implements io. Doc from io. Performs authentication on the request.
If authentication is REQUIRED then setAuthenticationRequired() should be called before calling this method.
If the result indicates that a response has been sent to the client then no further attempts should be made to modify the
response. The caller of this method is responsible for ending the exchange.
If this method returns
| |
| authTransition | back to summary |
|---|---|
| private boolean authTransition() | |
| authTransitionRequired | back to summary |
|---|---|
| private boolean authTransitionRequired() | |
| getAuthenticationMechanisms | back to summary |
|---|---|
| public List Implements io. Deprecated
| |
| getIdentityManager | back to summary |
|---|---|
| public IdentityManager getIdentityManager() Implements io. Doc from io. Deprecated
Obtain the associated
| |
| login | back to summary |
|---|---|
| public boolean login(final String username, final String password) Implements io. Doc from io. Attempts to log the user in using the provided credentials. This result will be stored in the current
This operation may block | |
| logout | back to summary |
|---|---|
| public void logout() Overrides io. Implements io. Doc from io. de-authenticates the current exchange.
| |
| sendChallenges | back to summary |
|---|---|
| private SecurityContextImpl. | |
| setProgramaticMechName | back to summary |
|---|---|
| public void setProgramaticMechName(final String programaticMechName) Set the name of the mechanism used for authentication to be reported if authentication was handled programatically. | |
| Modifier and Type | Field and Description |
|---|---|
| private SecurityContextImpl. | |
| private final HttpServerExchange |
| Access | Constructor and Description |
|---|---|
| private | AuthAttempter(SecurityContextImpl.
|
| Modifier and Type | Method and Description |
|---|---|
| private SecurityContextImpl. |
| currentMethod | back to summary |
|---|---|
| private SecurityContextImpl. | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| AuthAttempter | back to summary |
|---|---|
| private AuthAttempter(SecurityContextImpl. | |
| transition | back to summary |
|---|---|
| private SecurityContextImpl. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SecurityContextImpl. | |
| public static final SecurityContextImpl. | |
| public static final SecurityContextImpl. | |
| public static final SecurityContextImpl. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SecurityContextImpl. | |
| public static SecurityContextImpl. |
| ATTEMPTED | back to summary |
|---|---|
| public static final SecurityContextImpl. | |
| AUTHENTICATED | back to summary |
|---|---|
| public static final SecurityContextImpl. | |
| CHALLENGE_SENT | back to summary |
|---|---|
| public static final SecurityContextImpl. | |
| NOT_ATTEMPTED | back to summary |
|---|---|
| public static final SecurityContextImpl. | |
| AuthenticationState | back to summary |
|---|---|
| private AuthenticationState() | |
| valueOf | back to summary |
|---|---|
| public static SecurityContextImpl. | |
| values | back to summary |
|---|---|
| public static SecurityContextImpl. | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Integer | |
| private SecurityContextImpl. | |
| private final HttpServerExchange |
| Access | Constructor and Description |
|---|---|
| private | ChallengeSender(SecurityContextImpl.
|
| Modifier and Type | Method and Description |
|---|---|
| private SecurityContextImpl. |
| challengeSent | back to summary |
|---|---|
| private boolean challengeSent | |
| chosenStatusCode | back to summary |
|---|---|
| private Integer chosenStatusCode | |
| currentMethod | back to summary |
|---|---|
| private SecurityContextImpl. | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| ChallengeSender | back to summary |
|---|---|
| private ChallengeSender(SecurityContextImpl. | |
| transition | back to summary |
|---|---|
| private SecurityContextImpl. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| pack-priv SecurityContextImpl. |
| Access | Constructor and Description |
|---|---|
| private |
| item | back to summary |
|---|---|
| pack-priv final T item | |
| next | back to summary |
|---|---|
| pack-priv SecurityContextImpl. | |
| Node | back to summary |
|---|---|
| private Node(T item) | |