Class DefaultConnectionSubjectFactory
- java.lang.Object
-
- org.apache.activemq.shiro.subject.DefaultConnectionSubjectFactory
-
- All Implemented Interfaces:
ConnectionSubjectFactory
public class DefaultConnectionSubjectFactory extends Object implements ConnectionSubjectFactory
- Since:
- 5.10.0
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionSubjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.shiro.subject.Subject
createSubject(ConnectionReference conn)
Creates aSubject
instance representing the connection client.AuthenticationPolicy
getAuthenticationPolicy()
void
setAuthenticationPolicy(AuthenticationPolicy authenticationPolicy)
-
-
-
Method Detail
-
getAuthenticationPolicy
public AuthenticationPolicy getAuthenticationPolicy()
-
setAuthenticationPolicy
public void setAuthenticationPolicy(AuthenticationPolicy authenticationPolicy)
-
createSubject
public org.apache.shiro.subject.Subject createSubject(ConnectionReference conn)
Description copied from interface:ConnectionSubjectFactory
Creates aSubject
instance representing the connection client. It is common forSubject
instances returned from this method to be anonymous until a downstreamAuthenticationFilter
authenticates the subject to associate an identity.- Specified by:
createSubject
in interfaceConnectionSubjectFactory
- Parameters:
conn
- a reference to the client's connection metadata- Returns:
- a
Subject
instance representing the connection client.
-
-