public class ElytronCallbackHandler extends Object implements CallbackHandler, Serializable
CallbackHandler implementation designed for the JCA security inflow. It uses the information
obtained from the Callbacks to authenticate and authorize the identity supplied
by the resource adapter and inserts the SecurityIdentity representing the authorized identity in the subject's
private credentials set.| Constructor and Description |
|---|
ElytronCallbackHandler(org.wildfly.security.auth.server.SecurityDomain securityDomain,
org.jboss.jca.core.spi.security.Callback mappings)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPrivateCredential(Subject subject,
Object credential)
Add the specified credential to the subject's private credentials set.
|
protected <T> T |
getPrivateCredential(Subject subject,
Class<T> credentialClass) |
void |
handle(Callback[] callbacks) |
protected void |
handleInternal(javax.security.auth.message.callback.CallerPrincipalCallback callerPrincipalCallback,
javax.security.auth.message.callback.GroupPrincipalCallback groupPrincipalCallback,
javax.security.auth.message.callback.PasswordValidationCallback passwordValidationCallback) |
String |
toString() |
public ElytronCallbackHandler(org.wildfly.security.auth.server.SecurityDomain securityDomain,
org.jboss.jca.core.spi.security.Callback mappings)
securityDomain - the Elytron security domain used to establish the caller principal.mappings - The mappings.public void handle(Callback[] callbacks) throws UnsupportedCallbackException, IOException
handle in interface CallbackHandlerUnsupportedCallbackExceptionIOExceptionprotected void handleInternal(javax.security.auth.message.callback.CallerPrincipalCallback callerPrincipalCallback, javax.security.auth.message.callback.GroupPrincipalCallback groupPrincipalCallback, javax.security.auth.message.callback.PasswordValidationCallback passwordValidationCallback) throws IOException
IOExceptionprotected <T> T getPrivateCredential(Subject subject, Class<T> credentialClass)
protected void addPrivateCredential(Subject subject, Object credential)
subject - the Subject to add the credential to.credential - a reference to the credential.Copyright © 2019 JBoss by Red Hat. All rights reserved.