org.exoplatform.services.security.sso.ntlm
Class NTLMAuthenticator

java.lang.Object
  extended by org.exoplatform.services.security.sso.ntlm.NTLMAuthenticator
All Implemented Interfaces:
SSOAuthenticator

public class NTLMAuthenticator
extends Object
implements SSOAuthenticator

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
NTLMAuthenticator()
           
 
Method Summary
 void doAuthenticate(byte[] token)
          
 Principal getPrincipal()
          
 byte[] getSendBackToken()
          
 String getUser()
          
 boolean isComplete()
          Says is authentication complete.
static boolean isNTLM(byte[] token)
          Check is authentication token has correct signature.
 boolean isSuccess()
          Says is authentication successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NTLMAuthenticator

public NTLMAuthenticator()
Method Detail

isComplete

public boolean isComplete()
Says is authentication complete.

Specified by:
isComplete in interface SSOAuthenticator
Returns:
true is authentication completed (with error or success), false otherwise.

isSuccess

public boolean isSuccess()
Says is authentication successful.

Specified by:
isSuccess in interface SSOAuthenticator
Returns:
true if authentication (or step of it) successful false otherwise.

doAuthenticate

public void doAuthenticate(byte[] token)
                    throws Exception

Specified by:
doAuthenticate in interface SSOAuthenticator
Parameters:
token - the token from client.
Throws:
Exception - if any error occurs.

getSendBackToken

public byte[] getSendBackToken()

Specified by:
getSendBackToken in interface SSOAuthenticator
Returns:
Token for sending back to client, can be null if server has nothing to say.

getUser

public String getUser()

Specified by:
getUser in interface SSOAuthenticator
Returns:
the name of user if authentication is success otherwise null.

getPrincipal

public Principal getPrincipal()

Specified by:
getPrincipal in interface SSOAuthenticator
Returns:
the user Principal.

isNTLM

public static boolean isNTLM(byte[] token)
Check is authentication token has correct signature.

Parameters:
token - the token.
Returns:
true if token signature is correct false otherwise.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.