View Javadoc

1   package com.atlassian.asap.service.core.spi;
2   
3   
4   /**
5    * Configuration for the ASAP library, which provides the ability to create and verify authentication tokens
6    * for service-to-service communication.
7    *
8    * @since 2.8
9    */
10  public interface AsapConfiguration {
11      /**
12       * The issuer that is used when signing tokens.
13       *
14       * @return the default issuer
15       */
16      String issuer();
17  
18      /**
19       * The key ID that is used when signing tokens.
20       *
21       * @return the default key ID
22       */
23      String keyId();
24  
25      /**
26       * The default audience value that we expect to find when validating an authentication token that was sent to
27       * by some other service.
28       *
29       * @return the default audience
30       */
31      String audience();
32  
33      /**
34       * Where public keys can be found.
35       *
36       * @return the base URL of the public key repository
37       */
38      String publicKeyRepositoryUrl();
39  
40      /**
41       * Where private keys can be found.
42       *
43       * @return the URL of our private key source
44       */
45      String privateKeyUrl();
46  }