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
    • 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 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
      • 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.