public interface AuthenticationTokenFactory
AuthenticationTokenFactory inspects a newly-added ActiveMQ connection and returns a Shiro
AuthenticationToken instance representing credentials associated with the connection. These credentials can
be used to authenticate
the connection, allowing for later identity and authorization (access control) checks.| Modifier and Type | Method and Description |
|---|---|
org.apache.shiro.authc.AuthenticationToken |
getAuthenticationToken(SubjectConnectionReference ref)
Returns a Shiro
AuthenticationToken instance that should be used to authenticate the connection's
Subject, or null if no authentication information can be obtained. |
org.apache.shiro.authc.AuthenticationToken getAuthenticationToken(SubjectConnectionReference ref) throws Exception
AuthenticationToken instance that should be used to authenticate the connection's
Subject, or null if no authentication information can be obtained.
If no AuthenticationToken can be obtained, the connection's Subject will be considered anonymous and any
downstream security checks that enforce authentication or authorization will fail (as would be expected).ref - the subject's connectionAuthenticationToken instance that should be used to authenticate the connection's
Subject, or null if no authentication information can be obtained.Exception - if there is a problem acquiring/creating an expected AuthenticationToken.Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.