Package org.apache.activemq.security
Class JaasCertificateSecurityContext
- java.lang.Object
-
- org.apache.activemq.security.SecurityContext
-
- org.apache.activemq.security.JaasCertificateSecurityContext
-
public class JaasCertificateSecurityContext extends SecurityContext
Extends the SecurityContext to provide a username which is the Distinguished Name from the certificate.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.security.SecurityContext
BROKER_SECURITY_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description JaasCertificateSecurityContext(String userName, Subject subject, X509Certificate[] certs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Principal>
getPrincipals()
String
getUserName()
-
Methods inherited from class org.apache.activemq.security.SecurityContext
getAuthorizedWriteDests, isBrokerContext, isInOneOf
-
-
-
-
Constructor Detail
-
JaasCertificateSecurityContext
public JaasCertificateSecurityContext(String userName, Subject subject, X509Certificate[] certs)
-
-
Method Detail
-
getPrincipals
public Set<Principal> getPrincipals()
- Specified by:
getPrincipals
in classSecurityContext
-
getUserName
public String getUserName()
- Overrides:
getUserName
in classSecurityContext
-
-