Class JBossCallbackHandler

    • Constructor Detail

      • JBossCallbackHandler

        public JBossCallbackHandler()
      • JBossCallbackHandler

        public JBossCallbackHandler​(Principal principal,
                                    Object credential)
        Initialize the UsernamePasswordHandler with the principal and credentials to use.
    • Method Detail

      • setSecurityInfo

        public void setSecurityInfo​(Principal principal,
                                    Object credential)
      • handle

        public void handle​(Callback[] callbacks)
                    throws UnsupportedCallbackException,
                           IOException
        Handles SecurityAssociationCallback, ObjectCallback, NameCallback and PasswordCallback types. A NameCallback name property is set to the Prinicpal.getName() value. A PasswordCallback password property is set to the getPassword() value. The preferred SecurityAssociationCallback has its principal and credential properties set to the instance principal and credential. An ObjectCallback has its credential set to the credential value.
        Specified by:
        handle in interface CallbackHandler
        Throws:
        UnsupportedCallbackException - - thrown if any callback of type other than SecurityAssociationCallback, ObjectCallback, NameCallback or PasswordCallback are seen.
        IOException
        See Also:
        getPassword()