org.exoplatform.services.security.sso.spnego
Class SpnegoAuthenticator

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

public class SpnegoAuthenticator
extends Object
implements SSOAuthenticator

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
SpnegoAuthenticator()
          Constructs instance of SpnegoAuthenticator.
 
Method Summary
 void doAuthenticate(byte[] token)
          
 Principal getPrincipal()
          
 byte[] getSendBackToken()
          
 String getUser()
          
 boolean isComplete()
          Says is authentication complete.
 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

SpnegoAuthenticator

public SpnegoAuthenticator()
Constructs instance of SpnegoAuthenticator.

Method Detail

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.

getPrincipal

public Principal getPrincipal()

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

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.

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.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.