Class ElytronSecurityManager
java.lang.Object
org.wildfly.extension.messaging.activemq.ElytronSecurityManager
- All Implemented Interfaces:
ActiveMQSecurityManager
This class implements an
ActiveMQSecurityManager that uses an Elytron SecurityDomain to authenticate
users and perform role checking.- Author:
- Stefan Guilhen
-
Constructor Summary
ConstructorsConstructorDescriptionElytronSecurityManager(SecurityDomain securityDomain) Creates an instance ofElytronSecurityManagerwith the specifiedSecurityDomain. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidateUser(String username, String password) is this a valid user.booleanis this a valid user and do they have the correct roleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager
getDomain, getUserFromSubject, init
-
Constructor Details
-
ElytronSecurityManager
Creates an instance ofElytronSecurityManagerwith the specifiedSecurityDomain.- Parameters:
securityDomain- a reference to the ElytronSecurityDomainthat will be used to authenticate users.
-
-
Method Details
-
validateUser
Description copied from interface:ActiveMQSecurityManageris this a valid user.- Specified by:
validateUserin interfaceActiveMQSecurityManager- Parameters:
username- the userpassword- the users password- Returns:
trueif a valid user
-
validateUserAndRole
public boolean validateUserAndRole(String username, String password, Set<Role> roles, CheckType checkType) Description copied from interface:ActiveMQSecurityManageris this a valid user and do they have the correct role- Specified by:
validateUserAndRolein interfaceActiveMQSecurityManager- Parameters:
username- the userpassword- the users passwordroles- the roles the user hascheckType- the type of check to perform- Returns:
trueif the user is valid and they have the correct roles
-