static void copySubject(Subject fromSubject, Subject toSubject) { copySubject(fromSubject, toSubject, false); } static void copySubject(Subject fromSubject, Subject toSubject, boolean setReadOnly)
public String toString() { StringBuffer tmp = new StringBuffer(super.toString()); tmp.append('['); tmp.append(SubjectActions.toString(subject)); tmp.append(",credential.class="); if( credential != null ) { Class<?> c = credential.getClass(); tmp.append(c.getName()); tmp.append('@'); tmp.append(System.identityHashCode(c)); } else { tmp.append("null"); } tmp.append(",expirationTime="); tmp.append(expirationTime); tmp.append(']'); return tmp.toString(); } }
context = SubjectActions.createLoginContext(securityDomain, subject, theHandler); SubjectActions.setContextInfo("org.jboss.security.exception", le); return; if (PicketBoxLogger.LOGGER.isTraceEnabled()) PicketBoxLogger.LOGGER.traceLogoutSubject(context.toString(), SubjectActions.toString(subject)); SubjectActions.setContextInfo("org.jboss.security.exception", le);
SubjectActions.copySubject(subject, theSubject, false, this.deepCopySubjectOption); } else { SubjectActions.setContextInfo("org.jboss.security.exception", authException);
if (trace) log.trace("defaultLogin, principal=" + principal); lc = SubjectActions.createLoginContext(securityDomain, subject, theHandler); lc.login(); if (trace) log.trace("defaultLogin, lc=" + lc + ", subject=" + SubjectActions.toString(subject)); return lc;
info.loginCtx = lc; info.subject = new Subject(); SubjectActions.copySubject(subject, info.subject, true, this.deepCopySubjectOption); info.credential = credential; log.trace("updateCache, inputSubject=" + SubjectActions.toString(subject) + ", cacheSubject=" + SubjectActions.toString(info.subject));
if(!jbossModuleNames.isEmpty()) ClassLoader currentTccl = SubjectActions.getContextClassLoader(); ClassLoaderLocator theCLL = ClassLoaderLocatorFactory.get(); if(theCLL != null) SubjectActions.setContextClassLoader(newTCCL); return proceedWithJaasLogin(principal, credential, theSubject); SubjectActions.setContextClassLoader(currentTccl);
SubjectActions.copySubject(subject, theSubject, false,this.deepCopySubjectOption); SubjectActions.setContextInfo("org.jboss.security.exception", authException);
if( trace ) log.trace("defaultLogin, principal="+principal); lc = SubjectActions.createLoginContext(securityDomain, subject, theHandler); lc.login(); if( trace ) log.trace("defaultLogin, lc="+lc+", subject="+SubjectActions.toString(subject)); return lc;
info.loginCtx = lc; info.subject = new Subject(); SubjectActions.copySubject(subject, info.subject, true, this.deepCopySubjectOption); info.credential = credential; log.trace("updateCache, inputSubject="+SubjectActions.toString(subject) +", cacheSubject="+SubjectActions.toString(info.subject));
SubjectActions.copySubject(subject, theSubject, false, this.deepCopySubjectOption); SubjectActions.setContextInfo("org.jboss.security.exception", authException);
LoginContext lc = null; PicketBoxLogger.LOGGER.traceDefaultLoginPrincipal(principal); lc = SubjectActions.createLoginContext(securityDomain, subject, theHandler); lc.login(); if (PicketBoxLogger.LOGGER.isDebugEnabled()) PicketBoxLogger.LOGGER.traceDefaultLoginSubject(lc.toString(), SubjectActions.toString(subject));
static void copySubject(Subject fromSubject, Subject toSubject) { copySubject(fromSubject, toSubject, false); } static void copySubject(Subject fromSubject, Subject toSubject, boolean setReadOnly)
SubjectActions.copySubject(info.subject, theSubject, false,this.deepCopySubjectOption);
SubjectActions.copySubject(info.subject, theSubject, false, this.deepCopySubjectOption);