]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/runtime/org.argeo.security.activemq/src/main/java/org/argeo/security/activemq/ActiveMqSpringSecurityContext.java
Move to the root the bundles which will be part of v1.4 and v2.2
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.activemq / src / main / java / org / argeo / security / activemq / ActiveMqSpringSecurityContext.java
index 6492d7cd23e7440158f2d28496496d5f11e5a986..f9ba03891e8b7452977fa7caf9df815cc574204a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ import java.util.Set;
 import org.springframework.security.GrantedAuthority;
 import org.springframework.security.context.SecurityContext;
 
+/** An ActiveMQ security context compatible with Spring Security. */
 public class ActiveMqSpringSecurityContext extends
                org.apache.activemq.security.SecurityContext {
 
@@ -34,8 +35,8 @@ public class ActiveMqSpringSecurityContext extends
 
        @Override
        public Set<?> getPrincipals() {
-               return new HashSet<GrantedAuthority>(Arrays
-                               .asList(springSecurityContext.getAuthentication()
+               return new HashSet<GrantedAuthority>(
+                               Arrays.asList(springSecurityContext.getAuthentication()
                                                .getAuthorities()));
        }