org.wicketstuff.shiro.ShiroSubjectModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicket-shiro Show documentation
Show all versions of wicket-shiro Show documentation
Shiro Security for Apache Wicket. (Shiro was formerly known as Apache Ki and JSecurity)
package org.wicketstuff.shiro;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.IModel;
/**
* A simple wrapper for to access {@link SecurityUtils#getSubject()}
* as an {@link IModel}
*/
public class ShiroSubjectModel extends AbstractReadOnlyModel
{
@Override
public Subject getObject() {
return SecurityUtils.getSubject();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy