com.atlassian.confluence.security.trust.seraph
Class SeraphTrustedApplicationUserResolver

java.lang.Object
  extended by com.atlassian.confluence.security.trust.seraph.SeraphTrustedApplicationUserResolver
All Implemented Interfaces:
com.atlassian.security.auth.trustedapps.UserResolver

public class SeraphTrustedApplicationUserResolver
extends Object
implements com.atlassian.security.auth.trustedapps.UserResolver

A UserResolver is used by the TrustedApplicationsFilter to find a user based on the application certificate. This implementation delegates to the current usermanager being used by Confluence.


Constructor Summary
SeraphTrustedApplicationUserResolver()
           
 
Method Summary
 Principal resolve(com.atlassian.security.auth.trustedapps.ApplicationCertificate applicationCertificate)
          resolves the application certificate into a valid user object if one is found.
 void setUserManager(com.atlassian.user.UserManager userManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeraphTrustedApplicationUserResolver

public SeraphTrustedApplicationUserResolver()
Method Detail

setUserManager

public void setUserManager(com.atlassian.user.UserManager userManager)

resolve

public Principal resolve(com.atlassian.security.auth.trustedapps.ApplicationCertificate applicationCertificate)
resolves the application certificate into a valid user object if one is found.

Specified by:
resolve in interface com.atlassian.security.auth.trustedapps.UserResolver
Returns:
the user object or null if none is found (or an error occured while looking one up)


Copyright © 2003-2013 Atlassian. All Rights Reserved.