org.wicketstuff.ki.KiSubjectModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicket-ki-security Show documentation
Show all versions of wicket-ki-security Show documentation
Ki Security for Apache Wicket. (The project formerly known as JSecurity)
package org.wicketstuff.ki;
import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.IModel;
import org.jsecurity.SecurityUtils;
import org.jsecurity.subject.Subject;
/**
* A simple wrapper for to access {@link SecurityUtils#getSubject()}
* as an {@link IModel}
*/
public class KiSubjectModel extends AbstractReadOnlyModel
{
@Override
public Subject getObject() {
return SecurityUtils.getSubject();
}
}