C
- the context object typepublic 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>
Default implementation of
Security.ChangePrincipalContextCallback . |
Modifier and Type | Method and Description |
---|---|
void |
onAuthenticationFailure(C context)
This will be called if an attempt to change the session principal
failed because authentication failed at the server.
|
void |
onPrincipalChanged(C context)
Notification that a request to change the session principal was
successful.
|
onDiscard
void onPrincipalChanged(C context)
context
- the context object supplied when making the call. May
be null
void onAuthenticationFailure(C context)
context
- the context object supplied when making the call. May
be null
Copyright © 2020 Push Technology Ltd. All Rights Reserved.