SecurityContext implementations predominantly focusing on the notification handling allowing the
specific implementation for focus on authentication.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private Account | |
| private boolean | |
| protected final HttpServerExchange | |
| private String | |
| private AbstractSecurityContext. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | authenticationComplete(Account
- The authenticated account, String Account- The name of the mechanism used to authenticate the account. mechanism, final boolean - If this mechanism requires caching cachingRequired)Implements io. Called by the |
| protected void | authenticationComplete(Account account, String mechanism, boolean programatic, final boolean cachingRequired)
|
| public void | authenticationFailed(String
- The message describing the failure. message, String - The name of the mechanism reporting the failure. mechanism)Implements io. Called by the |
| public Account | getAuthenticatedAccount()
Implements io. Obtain the |
| public String | Returns: The name of the mechanism used to authenticate the request.Implements io.
|
| public boolean | |
| public boolean | isAuthenticationRequired()
Implements io. Returns true if authentication is required |
| public void | logout()
Implements io. de-authenticates the current exchange. |
| public void | registerNotificationReceiver(NotificationReceiver
- The receiver)NotificationReceiver to register.Implements io. Register a |
| public void | removeNotificationReceiver(NotificationReceiver
- The receiver)NotificationReceiver to remove.Implements io. Remove a previously registered |
| private void | |
| public void | setAuthenticationRequired()
Implements io. Marks this request as requiring authentication. |
| account | back to summary |
|---|---|
| private Account account | |
| authenticationRequired | back to summary |
|---|---|
| private boolean authenticationRequired | |
| exchange | back to summary |
|---|---|
| protected final HttpServerExchange exchange | |
| mechanismName | back to summary |
|---|---|
| private String mechanismName | |
| notificationReceivers | back to summary |
|---|---|
| private AbstractSecurityContext. | |
| AbstractSecurityContext | back to summary |
|---|---|
| protected AbstractSecurityContext(final HttpServerExchange exchange) | |
| authenticationComplete | back to summary |
|---|---|
| public void authenticationComplete(Account account, String mechanism, final boolean cachingRequired) Implements io. Doc from io. Called by the Note A successful verification of an account using the | |
| authenticationComplete | back to summary |
|---|---|
| protected void authenticationComplete(Account account, String mechanism, boolean programatic, final boolean cachingRequired) | |
| authenticationFailed | back to summary |
|---|---|
| public void authenticationFailed(String message, String mechanism) Implements io. Doc from io. Called by the | |
| getAuthenticatedAccount | back to summary |
|---|---|
| public Account getAuthenticatedAccount() Implements io. Doc from io. Obtain the | |
| getMechanismName | back to summary |
|---|---|
| public String getMechanismName() Implements io. | |
| isAuthenticated | back to summary |
|---|---|
| public boolean isAuthenticated() Implements io.
| |
| isAuthenticationRequired | back to summary |
|---|---|
| public boolean isAuthenticationRequired() Implements io. Doc from io. Returns true if authentication is required
| |
| logout | back to summary |
|---|---|
| public void logout() Implements io. Doc from io. de-authenticates the current exchange.
| |
| registerNotificationReceiver | back to summary |
|---|---|
| public void registerNotificationReceiver(NotificationReceiver receiver) Implements io. Doc from io. Register a
| |
| removeNotificationReceiver | back to summary |
|---|---|
| public void removeNotificationReceiver(NotificationReceiver receiver) Implements io. Doc from io. Remove a previously registered
| |
| sendNoticiation | back to summary |
|---|---|
| private void sendNoticiation(final SecurityNotification notification) | |
| setAuthenticationRequired | back to summary |
|---|---|
| public void setAuthenticationRequired() Implements io. Doc from io. Marks this request as requiring authentication. Authentication challenge headers will only be sent if this
method has been called. If
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| pack-priv AbstractSecurityContext. |
| Access | Constructor and Description |
|---|---|
| private |
| item | back to summary |
|---|---|
| pack-priv final T item | |
| next | back to summary |
|---|---|
| pack-priv AbstractSecurityContext. | |
| Node | back to summary |
|---|---|
| private Node(T item) | |