@Configuration public class AsapServerConfiguration extends Object
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.HttpClient |
asapHttpClient()
Definition of the
HttpClient bean. |
String |
getAudience() |
JwtClaimsValidator |
jwtClaimsValidator()
Definition of the
JwtClaimsValidator bean. |
JwtParser |
jwtParser()
Definition of the
JwtParser bean. |
JwtValidator |
jwtValidator(KeyProvider<PublicKey> publicKeyProvider,
JwtParser jwtParser,
JwtClaimsValidator jwtClaimsValidator)
Definition of the
JwtValidator bean. |
KeyProvider<PublicKey> |
publicKeyProvider(String publicKeyRepoBaseUrl)
Definition of the
KeyProvider bean. |
RequestAuthenticator |
requestAuthenticator(JwtValidator jwtValidator)
Definition of the
RequestAuthenticator bean. |
@Bean public JwtValidator jwtValidator(KeyProvider<PublicKey> publicKeyProvider, JwtParser jwtParser, JwtClaimsValidator jwtClaimsValidator)
JwtValidator bean.publicKeyProvider - the public key provider to look up public keysjwtParser - the parser to use for JWT token parsingjwtClaimsValidator - the validator for the claims in the JWT token@Bean public JwtClaimsValidator jwtClaimsValidator()
JwtClaimsValidator bean.@Bean public JwtParser jwtParser()
JwtParser bean.@Bean public KeyProvider<PublicKey> publicKeyProvider(@Value(value="${asap.public_key_repository.url}") String publicKeyRepoBaseUrl)
KeyProvider bean.publicKeyRepoBaseUrl - base URL of the public key repository. It may be a composite URL.@Bean @Lazy @Qualifier(value="asap") public org.apache.http.client.HttpClient asapHttpClient()
HttpClient bean.@Bean public RequestAuthenticator requestAuthenticator(JwtValidator jwtValidator)
RequestAuthenticator bean.jwtValidator - the validator of tokenspublic String getAudience()
Copyright © 2017 Atlassian. All rights reserved.