use of com.sun.enterprise.security.common.ClientSecurityContext in project Payara by payara.
the class J2EEKeyManager method setClientSecurityContext.
/**
* Sets the security context on the appclient side.
* It sets the relevant information into the TLS
* @param String username is the user who authenticated
* @param Subject is the subject representation of the user
* @param Credentials the credentials that the server associated with it
*/
private static void setClientSecurityContext(String username, Subject subject) {
ClientSecurityContext securityContext = new ClientSecurityContext(username, subject);
ClientSecurityContext.setCurrent(securityContext);
}
Aggregations