View Javadoc

1   package com.atlassian.sal.core.trusted;
2   
3   import com.atlassian.security.auth.trustedapps.EncryptedCertificate;
4   
5   /**
6    * Interface for retrieving encrypted certificate for given username.
7    */
8   public interface CertificateFactory
9   {
10      /**
11       * Trusted apps > 3.0.0 requires a signature which in turn requires a url.
12       * @deprecated since 2.10.9 use createCertificate(String username, String url)
13       */
14      @Deprecated
15      EncryptedCertificate createCertificate(String username);
16  
17      /**
18       * Create a Trusted Apps certificate.
19       * This will include a signature based the username and url.
20       */
21      EncryptedCertificate createCertificate(String username, String url);
22  }