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 * @deprecated since v2.13.1 Trusted Apps functionality is being deprecated across all products.
9 * Existing functionality will no longer be provided by the products moving forward.
10 * As an interim measure, it will instead it will all be provided via plugins.
11 */
12 @Deprecated
13 public interface CertificateFactory
14 {
15 /**
16 * Trusted apps > 3.0.0 requires a signature which in turn requires a url.
17 * @deprecated since 2.10.9 use createCertificate(String username, String url)
18 */
19 @Deprecated
20 EncryptedCertificate createCertificate(String username);
21
22 /**
23 * Create a Trusted Apps certificate.
24 * This will include a signature based the username and url.
25 */
26 EncryptedCertificate createCertificate(String username, String url);
27 }