public class DefaultConnectionSubjectFactory extends Object implements ConnectionSubjectFactory
Constructor and Description |
---|
DefaultConnectionSubjectFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.shiro.subject.Subject |
createSubject(ConnectionReference conn)
Creates a
Subject instance representing the connection client. |
AuthenticationPolicy |
getAuthenticationPolicy() |
void |
setAuthenticationPolicy(AuthenticationPolicy authenticationPolicy) |
public DefaultConnectionSubjectFactory()
public AuthenticationPolicy getAuthenticationPolicy()
public void setAuthenticationPolicy(AuthenticationPolicy authenticationPolicy)
public org.apache.shiro.subject.Subject createSubject(ConnectionReference conn)
ConnectionSubjectFactory
Subject
instance representing the connection client. It is common for Subject
instances
returned from this method to be anonymous until a downstream AuthenticationFilter
authenticates the
subject to associate an identity.createSubject
in interface ConnectionSubjectFactory
conn
- a reference to the client's connection metadataSubject
instance representing the connection client.Copyright © 2005–2017. All rights reserved.