jenkins merging release branch into master (strategy: theirs)
[cdm-vaadin.git] / src / main / java / eu / etaxonomy / cdm / vaadin / util / CdmVaadinAuthentication.java
index e32f5b91f9d7bc3fa08e2d665a61897096c2f175..f981061e90b3136496ee78afef9ba89b9b159443 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /**
  * Copyright (C) 2015 EDIT
  * European Distributed Institute of Taxonomy
@@ -54,6 +53,10 @@ public class CdmVaadinAuthentication {
         return false;
     }
 
+    public Authentication getAuthentication(URI uri, String context){
+        return hostAuthenticationMap.get(getRequestSource(uri, context));
+    }
+
     public boolean setSecurityContextAuthentication(URI uri, String context) {
         if(uri != null && context != null && !context.isEmpty()) {
             Authentication authentication = hostAuthenticationMap.get(getRequestSource(uri, context));