C - the context object typeMethods that use callbacks are deprecated and will be removed in a future release. Use CompletableFuture variant instead.
@Deprecated public static interface Security.ChangePrincipalContextCallback<C> extends ContextCallback<C>
Security.changePrincipal(String, Credentials, Object, ChangePrincipalContextCallback)
.
Use this alternative to Security.ChangePrincipalCallback to associate some
arbitrary context object with each call.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Security.ChangePrincipalContextCallback.Default<C>
Deprecated.
Default implementation of
Security.ChangePrincipalContextCallback. |
| Modifier and Type | Method and Description |
|---|---|
void |
onAuthenticationFailure(C context)
Deprecated.
This will be called if an attempt to change the session principal
failed because authentication failed at the server.
|
void |
onPrincipalChanged(C context)
Deprecated.
Notification that a request to change the session principal was
successful.
|
onDiscardvoid onPrincipalChanged(C context)
context - the context object supplied when making the call. May
be nullvoid onAuthenticationFailure(C context)
context - the context object supplied when making the call. May
be nullCopyright © 2023 DiffusionData Limited. All rights reserved.