View Javadoc

1   package com.atlassian.security.auth.trustedapps;
2   
3   import java.security.Principal;
4   
5   
6   /**
7    * Given the  trusted application certificate this object will lookup the Principal that made this request
8    */
9   public interface UserResolver
10  {
11  	/**
12  	 * Returns the user that made this request or null if this application does not have such a user.
13  	 * 
14  	 * @param certificate of the trusted application making this request 
15  	 * @return user making the request or null
16  	 */
17  	public Principal resolve(ApplicationCertificate certificate);
18  }