public interface SubjectIdentity
SecurityRealm
to provide a Subject
representing the servers identity.
This identity is returned instead of just the Subject
as it adds the ability to logout so that the Subject
can be cleaned up.Modifier and Type | Method and Description |
---|---|
Subject |
getSubject()
Get the
Subject instance wrapped by this SubjectIdentity . |
void |
logout()
Clean up this instance and logout any identity associated with the
Subject . |
Subject getSubject()
Subject
instance wrapped by this SubjectIdentity
.
This method will always return the same instance of Subject
and will never return null
.Subject
IllegalStateException
- If called after logout()
void logout()
Copyright © 2023 JBoss by Red Hat. All rights reserved.