View Javadoc

1   package com.atlassian.security.auth.trustedapps;
2   
3   /**
4    * Contains the encoded certificate information to be included in the trusted requests between applications. The
5    * provided information to be set in the request header using the following parameters:
6    * {@link TrustedApplicationUtils.Header.Request#ID} {@link TrustedApplicationUtils.Header.Request#CERTIFICATE}
7    * {@link TrustedApplicationUtils.Header.Request#SECRET_KEY}
8    */
9   public interface EncryptedCertificate
10  {
11      /**
12       * ID of the trusted application that encrypted this certificate
13       */
14      String getID();
15  
16      /**
17       * Secret Key for decrypting the certificate.
18       * <p>
19       * Encrypted with the private key of the trusted application and Base64 encoded
20       */
21      String getSecretKey();
22  
23      /**
24       * String that contains three lines:
25       * <p>
26       * Encrypted with the secret key and Base64 encoded
27       */
28      String getCertificate();
29  
30      /**
31       * Protocol version.
32       * <p>
33       * Not encrypted.
34       */
35      Integer getProtocolVersion();
36  
37      /**
38       * Magic Number for Transmission decryption validation.
39       * <p>
40       * Encrypted with the private key of the trusted application and Base64 encoded
41       */
42      String getMagicNumber();
43  }