com.sun.enterprise.security.appclient
Class AppClientSecurityInfoImpl

java.lang.Object
  extended by com.sun.enterprise.security.appclient.AppClientSecurityInfoImpl
All Implemented Interfaces:
AppClientSecurityInfo

@Service
public class AppClientSecurityInfoImpl
extends java.lang.Object
implements AppClientSecurityInfo

Author:
Kumar

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.enterprise.security.appclient.integration.AppClientSecurityInfo
AppClientSecurityInfo.CredentialType
 
Field Summary
protected  SSLUtils sslUtils
           
 
Constructor Summary
AppClientSecurityInfoImpl()
           
 
Method Summary
 void clearClientSecurityContext()
          Clears the Client's current Security Context.
 javax.security.auth.Subject doClientLogin(AppClientSecurityInfo.CredentialType credType)
          Do a client login using the CredentialType
 int getCredentialEncoding(AppClientSecurityInfo.CredentialType type)
           
 java.util.List<MessageSecurityConfig> getMsgSecConfigs()
           
 java.util.List<TargetServer> getTargetServers()
           
 void initializeSecurity(java.util.List<TargetServer> tServers, java.util.List<MessageSecurityConfig> configs, javax.security.auth.callback.CallbackHandler handler, AppClientSecurityInfo.CredentialType credType, java.lang.String username, char[] password, boolean isJWS, boolean useGUIAuth)
          Initialize Security Runtime for the AppContainerr (Stores, SecurityManager, JSR 196 etc)
 boolean isLoginCancelled()
          Check if the Login attempt was cancelled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sslUtils

protected SSLUtils sslUtils
Constructor Detail

AppClientSecurityInfoImpl

public AppClientSecurityInfoImpl()
Method Detail

initializeSecurity

public void initializeSecurity(java.util.List<TargetServer> tServers,
                               java.util.List<MessageSecurityConfig> configs,
                               javax.security.auth.callback.CallbackHandler handler,
                               AppClientSecurityInfo.CredentialType credType,
                               java.lang.String username,
                               char[] password,
                               boolean isJWS,
                               boolean useGUIAuth)
Description copied from interface: AppClientSecurityInfo
Initialize Security Runtime for the AppContainerr (Stores, SecurityManager, JSR 196 etc)

Specified by:
initializeSecurity in interface AppClientSecurityInfo
handler - the CallbackHandler
credType - The CredentialType of the Appclient
username - the static username if any was configured
password - the static password if any was configured

getCredentialEncoding

public int getCredentialEncoding(AppClientSecurityInfo.CredentialType type)
Specified by:
getCredentialEncoding in interface AppClientSecurityInfo
Parameters:
type - the credential type
Returns:
the integer encoding for this type

doClientLogin

public javax.security.auth.Subject doClientLogin(AppClientSecurityInfo.CredentialType credType)
Description copied from interface: AppClientSecurityInfo
Do a client login using the CredentialType

Specified by:
doClientLogin in interface AppClientSecurityInfo
Returns:

getTargetServers

public java.util.List<TargetServer> getTargetServers()

getMsgSecConfigs

public java.util.List<MessageSecurityConfig> getMsgSecConfigs()

clearClientSecurityContext

public void clearClientSecurityContext()
Description copied from interface: AppClientSecurityInfo
Clears the Client's current Security Context.

Specified by:
clearClientSecurityContext in interface AppClientSecurityInfo

isLoginCancelled

public boolean isLoginCancelled()
Description copied from interface: AppClientSecurityInfo
Check if the Login attempt was cancelled.

Specified by:
isLoginCancelled in interface AppClientSecurityInfo
Returns:
boolean indicating whether the login attempt was cancelled.


Copyright © 2012 GlassFish Community. All Rights Reserved.