@Service public class AppClientSecurityInfoImpl extends Object implements AppClientSecurityInfo
AppClientSecurityInfo.CredentialType| Constructor and Description |
|---|
AppClientSecurityInfoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearClientSecurityContext()
Clears the Client's current Security Context.
|
Subject |
doClientLogin(AppClientSecurityInfo.CredentialType credType)
Do a client login using the CredentialType
|
int |
getCredentialEncoding(AppClientSecurityInfo.CredentialType type) |
List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> |
getMsgSecConfigs() |
List<org.glassfish.appclient.client.acc.config.TargetServer> |
getTargetServers() |
void |
initializeSecurity(List<org.glassfish.appclient.client.acc.config.TargetServer> tServers,
List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> configs,
CallbackHandler handler,
AppClientSecurityInfo.CredentialType credType,
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.
|
@Inject protected SSLUtils sslUtils
public void initializeSecurity(List<org.glassfish.appclient.client.acc.config.TargetServer> tServers, List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> configs, CallbackHandler handler, AppClientSecurityInfo.CredentialType credType, String username, char[] password, boolean isJWS, boolean useGUIAuth)
AppClientSecurityInfoinitializeSecurity in interface AppClientSecurityInfohandler - the CallbackHandlercredType - The CredentialType of the Appclientusername - the static username if any was configuredpassword - the static password if any was configuredpublic int getCredentialEncoding(AppClientSecurityInfo.CredentialType type)
getCredentialEncoding in interface AppClientSecurityInfotype - the credential typepublic Subject doClientLogin(AppClientSecurityInfo.CredentialType credType)
AppClientSecurityInfodoClientLogin in interface AppClientSecurityInfopublic List<org.glassfish.appclient.client.acc.config.TargetServer> getTargetServers()
public List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> getMsgSecConfigs()
public void clearClientSecurityContext()
AppClientSecurityInfoclearClientSecurityContext in interface AppClientSecurityInfopublic boolean isLoginCancelled()
AppClientSecurityInfoisLoginCancelled in interface AppClientSecurityInfoCopyright © 2019. All rights reserved.