public class AuthenticationContext extends Object
| Constructor and Description |
|---|
AuthenticationContext(Set<String> resourceServerAudiences,
KeyProvider<PublicKey> publicKeyProvider)
Create a new
AuthenticationContext encapsulating the required information to authenticate a JWT. |
AuthenticationContext(Set<String> resourceServerAudiences,
String publicKeyServerBaseUrl)
Create a new
AuthenticationContext encapsulating the required information to authenticate a JWT. |
AuthenticationContext(String resourceServerAudience,
KeyProvider<PublicKey> publicKeyProvider)
Create a new
AuthenticationContext encapsulating the required information to authenticate a JWT. |
AuthenticationContext(String resourceServerAudience,
String publicKeyServerBaseUrl)
Create a new
AuthenticationContext encapsulating the required information to authenticate a JWT. |
| Modifier and Type | Method and Description |
|---|---|
KeyProvider<PublicKey> |
getPublicKeyProvider() |
String |
getResourceServerAudience()
Deprecated.
since 2.12, use
getResourceServerAudiences() instead |
Set<String> |
getResourceServerAudiences() |
public AuthenticationContext(@Nonnull String resourceServerAudience, @Nonnull String publicKeyServerBaseUrl)
AuthenticationContext encapsulating the required information to authenticate a JWT.resourceServerAudience - the audience value of the resource serverpublicKeyServerBaseUrl - the base url of the public key serverpublic AuthenticationContext(@Nonnull Set<String> resourceServerAudiences, @Nonnull String publicKeyServerBaseUrl)
AuthenticationContext encapsulating the required information to authenticate a JWT.resourceServerAudiences - the audience values of the resource serverpublicKeyServerBaseUrl - the base url of the public key serverpublic AuthenticationContext(@Nonnull String resourceServerAudience, @Nonnull KeyProvider<PublicKey> publicKeyProvider)
AuthenticationContext encapsulating the required information to authenticate a JWT.resourceServerAudience - the audience value of the resource serverpublicKeyProvider - the public key providerpublic AuthenticationContext(@Nonnull Set<String> resourceServerAudiences, @Nonnull KeyProvider<PublicKey> publicKeyProvider)
AuthenticationContext encapsulating the required information to authenticate a JWT.resourceServerAudiences - the audience value of the resource serverpublicKeyProvider - the public key provider@Deprecated public String getResourceServerAudience()
getResourceServerAudiences() insteadpublic Set<String> getResourceServerAudiences()
public KeyProvider<PublicKey> getPublicKeyProvider()
Copyright © 2017 Atlassian. All rights reserved.