Example usage for org.apache.shiro.subject.support DefaultSubjectContext AUTHENTICATED_SESSION_KEY

List of usage examples for org.apache.shiro.subject.support DefaultSubjectContext AUTHENTICATED_SESSION_KEY

Introduction

In this page you can find the example usage for org.apache.shiro.subject.support DefaultSubjectContext AUTHENTICATED_SESSION_KEY.

Prototype

String AUTHENTICATED_SESSION_KEY

To view the source code for org.apache.shiro.subject.support DefaultSubjectContext AUTHENTICATED_SESSION_KEY.

Click Source Link

Document

The session key that is used to store whether or not the user is authenticated.

Usage

From source file:com.ineunet.knife.security.Server.java

License:Apache License

/**
 * @param session//from  w  w w.  j  a  v a 2  s. c  o  m
 * @since 1.2.1
 */
public static void logout(Session session) {
    session.removeAttribute(DefaultSubjectContext.AUTHENTICATED_SESSION_KEY);
    session.removeAttribute(DefaultSubjectContext.PRINCIPALS_SESSION_KEY);
}