Class DefaultAuthenticator

  • All Implemented Interfaces:
    MessageAuthenticator

    public class DefaultAuthenticator
    extends Object
    implements MessageAuthenticator
    This class provides a default implementation for authenticating the webservices clients using various security mechanisms.
    • Constructor Detail

      • DefaultAuthenticator

        public DefaultAuthenticator()
    • Method Detail

      • authenticate

        public Object authenticate​(Subject subject,
                                   SecurityMechanism securityMechanism,
                                   SecurityToken securityToken,
                                   ProviderConfig config,
                                   Object secureMessage,
                                   boolean isLiberty)
                            throws SecurityException
        Authenticates the web services client.
        Specified by:
        authenticate in interface MessageAuthenticator
        Parameters:
        subject - the JAAS subject that may be used during authentication.
        securityMechanism - the security mechanism that will be used to authenticate the web services client.
        securityToken - the security token that is used.
        config - the provider configuration.
        secureMessage - the secure SOAPMessage. If the message security is provided by the WS-I profies, the secureMessage object is of type com.sun.identity.wss.security.handler.SecureSOAPMessage. If the message security is provided by the Liberty ID-WSF profiles, the secure message is of type com.sun.identity.liberty.ws.soapbinding.Message.
        isLiberty - boolean variable to indicate that the message security is provided by the liberty security profiles.
        Throws:
        SecurityException - if there is a failure in authentication.