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
Nested Classes Modifier and Type Interface Description static class
AppClientSecurityInfo.CredentialType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearClientSecurityContext()
Clears the Client's current Security Context.Subject
doClientLogin(AppClientSecurityInfo.CredentialType credType)
Do a client login using the CredentialTypeint
getCredentialEncoding(AppClientSecurityInfo.CredentialType type)
void
initializeSecurity(List<org.glassfish.appclient.client.acc.config.TargetServer> tServers, List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> msgSecConfigs, CallbackHandler handler, AppClientSecurityInfo.CredentialType appclientCredType, 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(List<org.glassfish.appclient.client.acc.config.TargetServer> tServers, List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> msgSecConfigs, CallbackHandler handler, AppClientSecurityInfo.CredentialType appclientCredType, String username, char[] password, boolean isJWS, boolean useGUIAuth)
Initialize Security Runtime for the AppContainerr (Stores, SecurityManager, JSR 196 etc)- Parameters:
container
- the Appclient Configuration Objecthandler
- the CallbackHandlerappclientCredType
- The CredentialType of the Appclientusername
- the static username if any was configuredpassword
- 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
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.
-
-