Style Intelligence v12.0

inetsoft.sree.security
Class DefaultLoginProvider

java.lang.Object
  extended by inetsoft.sree.security.DefaultLoginProvider
All Implemented Interfaces:
WebServiceLoginProvider

public class DefaultLoginProvider
extends Object
implements WebServiceLoginProvider

Default implementation of WebServiceLoginProvider. This implementation uses the user name and password encoded as the authentication token and delegates the authentication to the security provider that is configured in the Enterprise Manager.

Since:
11.3

Constructor Summary
DefaultLoginProvider()
          Creates a new instance of DefaultLoginProvider.
 
Method Summary
 Principal authenticate(String authenticationToken, String address)
          Authenticates a remote client.
 String getAuthenticationToken(String userName, String password)
          Gets the token that is passed from the client to the server for authentication.
 boolean isCredentialsRequired()
          Gets the flag that determines if the user is required to supply their user name and password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLoginProvider

public DefaultLoginProvider()
Creates a new instance of DefaultLoginProvider.

Method Detail

isCredentialsRequired

public boolean isCredentialsRequired()
Gets the flag that determines if the user is required to supply their user name and password. This method is only called on the client side.

Specified by:
isCredentialsRequired in interface WebServiceLoginProvider
Returns:
true if the credentials are required; false otherwise.

getAuthenticationToken

public String getAuthenticationToken(String userName,
                                     String password)
Gets the token that is passed from the client to the server for authentication. This method is only called on the client side.

Specified by:
getAuthenticationToken in interface WebServiceLoginProvider
Parameters:
userName - the user name of the client. This value may be null if WebServiceLoginProvider.isCredentialsRequired() returns false.
password - the password of the client. This value may be null if WebServiceLoginProvider.isCredentialsRequired() returns false.
Returns:
the authentication token.

authenticate

public Principal authenticate(String authenticationToken,
                              String address)
Authenticates a remote client. This method is only called on the server side.

Specified by:
authenticate in interface WebServiceLoginProvider
Parameters:
authenticationToken - the token provided by the client for authentication.
address - the address of the remote client.
Returns:
a Principal object identifying the remote user if successful; null if unsuccessful.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.