com.sun.enterprise.security.appclient
Class AppClientSecurityInfoImpl
java.lang.Object
com.sun.enterprise.security.appclient.AppClientSecurityInfoImpl
- All Implemented Interfaces:
- AppClientSecurityInfo
@Service
public class AppClientSecurityInfoImpl
- extends java.lang.Object
- implements AppClientSecurityInfo
- Author:
- Kumar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sslUtils
protected SSLUtils sslUtils
AppClientSecurityInfoImpl
public AppClientSecurityInfoImpl()
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 CallbackHandlercredType - The CredentialType of the Appclientusername - the static username if any was configuredpassword - 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.