org.globus.wsrf.impl.security.authentication.secureconv.service
Class AuthenticationServiceImpl

java.lang.Object
  extended byorg.globus.wsrf.impl.security.authentication.secureconv.service.AuthenticationServiceImpl
All Implemented Interfaces:
AuthenticationServiceConstants, java.rmi.Remote, SecureConversation

public class AuthenticationServiceImpl
extends java.lang.Object
implements AuthenticationServiceConstants, SecureConversation

This is used by the services to establish a security context. This class must be thread-safe. And must assume stateless for contexts because can have multiple active contexts.


Field Summary
private static org.globus.util.I18n i18n
           
(package private) static org.apache.commons.logging.Log logger
           
(package private) static org.apache.commons.logging.Log sysLogger
           
 
Fields inherited from interface org.globus.wsrf.impl.security.authentication.secureconv.service.AuthenticationServiceConstants
AUTH_SERVICE, AUTH_SERVICE_PATH, TARGET_SERVICE
 
Constructor Summary
AuthenticationServiceImpl()
           
 
Method Summary
private  SecurityContextTokenType createSecurityContextToken(org.apache.axis.types.URI contextId, ResourceContext ctx, SimpleResourceKey key)
           
protected  org.ietf.jgss.GSSCredential getCredential(java.lang.String servicePath, Resource resource)
           
private  Resource getTargetResource(java.lang.String servicePath)
           
private  java.lang.String getTargetService()
           
 RequestSecurityTokenResponseType requestSecurityToken(RequestSecurityTokenType request)
           
 void requestSecurityTokenResponse(RequestSecurityTokenResponseTypeHolder response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.commons.logging.Log logger

sysLogger

static org.apache.commons.logging.Log sysLogger

i18n

private static org.globus.util.I18n i18n
Constructor Detail

AuthenticationServiceImpl

public AuthenticationServiceImpl()
Method Detail

getCredential

protected org.ietf.jgss.GSSCredential getCredential(java.lang.String servicePath,
                                                    Resource resource)
                                             throws SecurityException
Throws:
SecurityException

getTargetService

private java.lang.String getTargetService()

getTargetResource

private Resource getTargetResource(java.lang.String servicePath)
                            throws SecurityException
Throws:
SecurityException

requestSecurityTokenResponse

public void requestSecurityTokenResponse(RequestSecurityTokenResponseTypeHolder response)
                                  throws java.rmi.RemoteException,
                                         MalformedMessageFaultType,
                                         InvalidContextIdFaultType,
                                         TokenTypeNotSupportedFaultType,
                                         ValueTypeNotSupportedFaultType,
                                         EncodingTypeNotSupportedFaultType,
                                         BinaryExchangeFaultType,
                                         RequestTypeNotSupportedFaultType
Specified by:
requestSecurityTokenResponse in interface SecureConversation
Throws:
java.rmi.RemoteException
MalformedMessageFaultType
InvalidContextIdFaultType
TokenTypeNotSupportedFaultType
ValueTypeNotSupportedFaultType
EncodingTypeNotSupportedFaultType
BinaryExchangeFaultType
RequestTypeNotSupportedFaultType

createSecurityContextToken

private SecurityContextTokenType createSecurityContextToken(org.apache.axis.types.URI contextId,
                                                            ResourceContext ctx,
                                                            SimpleResourceKey key)
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

requestSecurityToken

public RequestSecurityTokenResponseType requestSecurityToken(RequestSecurityTokenType request)
                                                      throws java.rmi.RemoteException,
                                                             MalformedMessageFaultType,
                                                             TokenTypeNotSupportedFaultType,
                                                             ValueTypeNotSupportedFaultType,
                                                             EncodingTypeNotSupportedFaultType,
                                                             BinaryExchangeFaultType,
                                                             RequestTypeNotSupportedFaultType
Specified by:
requestSecurityToken in interface SecureConversation
Throws:
java.rmi.RemoteException
MalformedMessageFaultType
TokenTypeNotSupportedFaultType
ValueTypeNotSupportedFaultType
EncodingTypeNotSupportedFaultType
BinaryExchangeFaultType
RequestTypeNotSupportedFaultType