Package org.apache.activemq.shiro.authc
Interface AuthenticationTokenFactory
-
- All Known Implementing Classes:
DefaultAuthenticationTokenFactory
public interface AuthenticationTokenFactory
AAuthenticationTokenFactory
inspects a newly-added ActiveMQ connection and returns a ShiroAuthenticationToken
instance representing credentials associated with the connection. These credentials can be used toauthenticate
the connection, allowing for later identity and authorization (access control) checks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.shiro.authc.AuthenticationToken
getAuthenticationToken(SubjectConnectionReference ref)
Returns a ShiroAuthenticationToken
instance that should be used to authenticate the connection'sSubject
, ornull
if no authentication information can be obtained.
-
-
-
Method Detail
-
getAuthenticationToken
org.apache.shiro.authc.AuthenticationToken getAuthenticationToken(SubjectConnectionReference ref) throws Exception
Returns a ShiroAuthenticationToken
instance that should be used to authenticate the connection'sSubject
, ornull
if no authentication information can be obtained. If noAuthenticationToken
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).- Parameters:
ref
- the subject's connection- Returns:
- a Shiro
AuthenticationToken
instance that should be used to authenticate the connection'sSubject
, ornull
if no authentication information can be obtained. - Throws:
Exception
- if there is a problem acquiring/creating an expectedAuthenticationToken
.
-
-