com.sun.enterprise.security.appclient.integration
Interface AppClientSecurityInfo

All Known Implementing Classes:
AppClientSecurityInfoImpl

@Contract
public interface AppClientSecurityInfo

The Interface usable by AppClient Container for configuring the Security Runtime.

Author:
Kumar Jayanti

Nested Class Summary
static class AppClientSecurityInfo.CredentialType
           
 
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)
           
 void initializeSecurity(java.util.List<TargetServer> tServers, java.util.List<MessageSecurityConfig> msgSecConfigs, javax.security.auth.callback.CallbackHandler handler, AppClientSecurityInfo.CredentialType appclientCredType, 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.
 

Method Detail

initializeSecurity

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

Parameters:
container - the Appclient Configuration Object
handler - the CallbackHandler
appclientCredType - The CredentialType of the Appclient
username - the static username if any was configured
password - the static password if any was configured

getCredentialEncoding

int getCredentialEncoding(AppClientSecurityInfo.CredentialType type)
Parameters:
type - the credential type
Returns:
the integer encoding for this type

doClientLogin

javax.security.auth.Subject doClientLogin(AppClientSecurityInfo.CredentialType credType)
Do a client login using the CredentialType

Parameters:
credType -
Returns:

clearClientSecurityContext

void clearClientSecurityContext()
Clears the Client's current Security Context.


isLoginCancelled

boolean isLoginCancelled()
Check if the Login attempt was cancelled.

Returns:
boolean indicating whether the login attempt was cancelled.


Copyright © 2012 GlassFish Community. All Rights Reserved.