it.eng.rdlab.soa3.connector.service.core.impl.authentication
Class AuthenticationInternalServiceImpl

java.lang.Object
  extended by it.eng.rdlab.soa3.connector.service.core.impl.authentication.AuthenticationInternalServiceImpl
All Implemented Interfaces:
AuthenticationInternalService
Direct Known Subclasses:
DNAuthenticationService, FederatedAuthenticationService, SessionAuthenticationService, UsernamePasswordAuthenticationService

public abstract class AuthenticationInternalServiceImpl
extends Object
implements AuthenticationInternalService

Abstract implementation of the authentication internal service

Author:
Ciro Formisano (ENG)

Constructor Summary
AuthenticationInternalServiceImpl(AccessCache accessCache)
           
 
Method Summary
protected abstract  AccessControlBean askToSOA3(String id, long currentTime)
          Sends the request to SOA3
 String authenticate(String id)
          
protected static String generateTicket()
           
protected  AccessControlBean getAccessBean(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationInternalServiceImpl

public AuthenticationInternalServiceImpl(AccessCache accessCache)
Method Detail

authenticate

public String authenticate(String id)

Specified by:
authenticate in interface AuthenticationInternalService
Parameters:
id - the authentication id
Returns:
the username if the user is authenticated, null otherwise

getAccessBean

protected AccessControlBean getAccessBean(String id)
Parameters:
id -
Returns:

generateTicket

protected static String generateTicket()
Returns:

askToSOA3

protected abstract AccessControlBean askToSOA3(String id,
                                               long currentTime)
Sends the request to SOA3

Parameters:
id -
currentTime -
Returns:


Copyright © 2013. All Rights Reserved.