Class ElytronCallbackHandler

    • Constructor Detail

      • ElytronCallbackHandler

        public ElytronCallbackHandler​(org.wildfly.security.auth.server.SecurityDomain securityDomain,
                                      org.jboss.jca.core.spi.security.Callback mappings)
        Constructor
        Parameters:
        securityDomain - the Elytron security domain used to establish the caller principal.
        mappings - The mappings.
    • Method Detail

      • handleInternal

        protected void handleInternal​(jakarta.security.auth.message.callback.CallerPrincipalCallback callerPrincipalCallback,
                                      jakarta.security.auth.message.callback.GroupPrincipalCallback groupPrincipalCallback,
                                      jakarta.security.auth.message.callback.PasswordValidationCallback passwordValidationCallback)
                               throws IOException
        Throws:
        IOException
      • getPrivateCredential

        protected <T> T getPrivateCredential​(Subject subject,
                                             Class<T> credentialClass)
      • addPrivateCredential

        protected void addPrivateCredential​(Subject subject,
                                            Object credential)
        Add the specified credential to the subject's private credentials set.
        Parameters:
        subject - the Subject to add the credential to.
        credential - a reference to the credential.