public class JWTAuthConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_KEY |
Modifier and Type | Method and Description |
---|---|
static JWTAuthConfiguration |
authConfiguration(java.security.Key publicKey,
java.lang.String issuer,
boolean allowNoExpiryClaim) |
static JWTAuthConfiguration |
authConfiguration(java.util.Map<java.lang.String,java.security.Key> publicKeys,
java.lang.String issuer,
boolean allowNoExpiryClaim) |
int |
getExpGracePeriodSecs() |
java.lang.String |
getHeaderName() |
java.lang.String |
getHeaderScheme() |
java.lang.String |
getIssuer() |
java.security.Key |
getPublicKey() |
java.util.List<JsonWebKey> |
getPublicKeys() |
boolean |
isAllowNoExpiryClaim() |
boolean |
isSingleKey() |
void |
setAllowNoExpiryClaim(boolean allowNoExpiryClaim) |
void |
setExpGracePeriodSecs(int expGracePeriodSecs) |
void |
setHeaderName(java.lang.String headerName) |
void |
setHeaderScheme(java.lang.String headerScheme) |
public static final java.lang.String DEFAULT_KEY
public static JWTAuthConfiguration authConfiguration(java.security.Key publicKey, java.lang.String issuer, boolean allowNoExpiryClaim)
public static JWTAuthConfiguration authConfiguration(java.util.Map<java.lang.String,java.security.Key> publicKeys, java.lang.String issuer, boolean allowNoExpiryClaim)
public boolean isSingleKey()
public java.security.Key getPublicKey()
public java.util.List<JsonWebKey> getPublicKeys()
public java.lang.String getIssuer()
public int getExpGracePeriodSecs()
public void setExpGracePeriodSecs(int expGracePeriodSecs)
public java.lang.String getHeaderName()
public void setHeaderName(java.lang.String headerName)
public java.lang.String getHeaderScheme()
public void setHeaderScheme(java.lang.String headerScheme)
public boolean isAllowNoExpiryClaim()
public void setAllowNoExpiryClaim(boolean allowNoExpiryClaim)