Registry / auth / shiro-core

shiro-core

JSON →
library2.2.0javamavenunverified

Core module of Apache Shiro, a security framework for authentication, authorization, cryptography, and session management.

<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>2.2.0</version> </dependency>
INSTALL
IMPORT
SIG · SHIRO-CORE
S
shiro-core
authjavav2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SecurityUtils
org.apache.shiro.SecurityUtils

Minimal usage of Apache Shiro to get the current subject.

import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; public class Main { public static void main(String[] args) { Subject currentUser = SecurityUtils.getSubject(); System.out.println("Current user: " + currentUser.getPrincipal()); } }
Debug
Known issues
breakingShiro 2.x has breaking changes from 1.x; review migration guide for Subject and Realm APIs.
fix
Check Shiro 2.0 migration notes and update code accordingly.
affects: 2.x
Upgrade
Version history
2.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
shiro-core — mvn dependency:get shiro-core · libregistry