Package org.apache.activemq.security
Interface AuthenticationBroker
-
- All Known Implementing Classes:
AbstractAuthenticationBroker
,JaasAuthenticationBroker
,JaasCertificateAuthenticationBroker
,JaasDualAuthenticationBroker
,SimpleAuthenticationBroker
public interface AuthenticationBroker
Base for all broker plugins that wish to provide connection authentication services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityContext
authenticate(String username, String password, X509Certificate[] peerCertificates)
Authenticate the given user using the mechanism provided by this service.
-
-
-
Method Detail
-
authenticate
SecurityContext authenticate(String username, String password, X509Certificate[] peerCertificates) throws SecurityException
Authenticate the given user using the mechanism provided by this service.- Parameters:
username
- the given user name to authenticate, null indicates an anonymous user.password
- the given password for the user to authenticate.peerCertificates
- for an SSL channel the certificates from remote peer.- Returns:
- a new SecurityContext for the authenticated user.
- Throws:
SecurityException
- if the user cannot be authenticated.
-
-