com.wm.security.auth
Interface Token

All Known Implementing Classes:
BasicToken, X509Token

public interface Token

You use this interface to represent authentication information that will be processed by a pluggable authentication module. For information about creating a pluggable authentication module, see "Customizing Authentication" in the webMethods Integration Server Administrator's Guide.

webMethods provides two concrete implementations of this interface:

Class
Description
com.wm.app.b2b.server.auth.BasicToken Represents a user name/password combination that has been submitted to the webMethods Integration Server.
com.wm.app.b2b.server.auth.X509Token Represents a a certificate chain that has been submitted to the webMethods Integration Server via HTTPS.

See Also:
Module, BasicToken, X509Token

Method Summary
 java.lang.String getType()
          Returns the type of authentication information contained within the object.
 

Method Detail

getType

java.lang.String getType()
Returns the type of authentication information contained within the object. For example, you might return the string "basic" if the Token represents user name and password information.

Note: The value returned by this method must match the value returned by the getMechanism method of the authentication module by which you want this token processed. If it does not match, the token will not be passed to that authentication module.

Returns:
A String indicating the token's type.
See Also:
Module.getMechanism()