org.apache.activemq.security
Class JaasCertificateSecurityContext

java.lang.Object
  extended by org.apache.activemq.security.SecurityContext
      extended by 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
JaasCertificateSecurityContext(String userName, Subject subject, X509Certificate[] certs)
           
 
Method Summary
 Set<Principal> getPrincipals()
           
 String getUserName()
           
 
Methods inherited from class org.apache.activemq.security.SecurityContext
getAuthorizedReadDests, getAuthorizedWriteDests, isBrokerContext, isInOneOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasCertificateSecurityContext

public JaasCertificateSecurityContext(String userName,
                                      Subject subject,
                                      X509Certificate[] certs)
Method Detail

getPrincipals

public Set<Principal> getPrincipals()
Specified by:
getPrincipals in class SecurityContext

getUserName

public String getUserName()
Overrides:
getUserName in class SecurityContext


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.