<aside> <img src="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" alt="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" width="40px" />
TABLE OF CONTENT
</aside>
| Package | ‣ dev.tommasop1804.springutils.security |
|---|---|
| Since version | 1.0.0 |
| JVM class name | SecurityUtilsKt |
authentication| Since version | 1.0.0 |
|---|---|
| Type | ‣ Authentication? |
| Dinamically computed | ✔️ |
Represents the current authentication object associated with the security context.
This property retrieves the authentication details from the SecurityContextHolder. It may contain information about the currently authenticated user or principal. If there is no authenticated user or the security context is empty, this property will return null.
authorities| Since version | 1.0.0 |
|---|---|
| Type | ‣ Set<String> |
| Dinamically computed | ✔️ |
Represents a set of authorities associated with the currently authenticated user.
Each authority is mapped to its string representation and returned as an immutable set of strings.
This property dynamically retrieves the authorities from the active authentication object stored in the security context.
user| Since version | 1.0.0 |
|---|---|
| Type | ‣ Any? |
| Dinamically computed | ✔️ |
Represents the currently authenticated user in the security context. The value is retrieved from the security context's authentication principal. It can be null if there is no authenticated user in the current context.