//}
//Object containerContext = ci.getContainerContext();
//if(containerContext != null &&
//(containerContext instanceof AppContainer)) {
if (Util.getInstance().isACC()) {
ClientSecurityContext ctx = ClientSecurityContext.getCurrent();
Subject s = ctx.getSubject();
if (s == null) {
// pass the handler and do the login
//TODO V3: LoginContextDriver.doClientLogin(AppContainer.CERTIFICATE,
//AppContainer.getCallbackHandler());
doClientLogin(SecurityConstants.CERTIFICATE,
Util.getInstance().getCallbackHandler());
s = ctx.getSubject();
}
Iterator itr = s.getPrivateCredentials().iterator();
while(itr.hasNext()) {
Object o = itr.next();
if(o instanceof X509CertificateCredential) {