public interface ConnectionSubjectFactory
Subjectinstance that represents the connection client's identity. Most implementations will simply use the
Subject.Builderto create an anonymous
Subjectinstance and let a downstream
Subjectbased on any credentials associated with the connection. After authentication, the
Subjectwill have an identity, and this is the expected flow for most connection clients. However, if there is some other data associated with the connection that can be inspected to create a
Subjectinstance beyond what the
DefaultConnectionSubjectFactoryprovides, this interface allows that logic to be plugged in as necessary.
org.apache.shiro.subject.Subject createSubject(ConnectionReference ref)
Subjectinstance representing the connection client. It is common for
Subjectinstances returned from this method to be anonymous until a downstream
AuthenticationFilterauthenticates the subject to associate an identity.
ref- a reference to the client's connection metadata
Subjectinstance representing the connection client.
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.