All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.shiro.ShiroSubjectModel Maven / Gradle / Ivy

Go to download

Shiro Security for Apache Wicket. (Shiro was formerly known as Apache Ki and JSecurity)

There is a newer version: 1.5-RC5.1
Show newest version
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