Class AuthTokenServiceConfig
- java.lang.Object
-
- com.floragunn.searchguard.authtoken.AuthTokenServiceConfig
-
public class AuthTokenServiceConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthTokenServiceConfig.FreezePrivileges
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_AUDIENCE
-
Constructor Summary
Constructors Constructor Description AuthTokenServiceConfig()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_AUDIENCE
public static final String DEFAULT_AUDIENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
getJwtSigningKey
public org.apache.cxf.rs.security.jose.jwk.JsonWebKey getJwtSigningKey()
-
getJwtEncryptionKey
public org.apache.cxf.rs.security.jose.jwk.JsonWebKey getJwtEncryptionKey()
-
getJwtAud
public String getJwtAud()
-
getMaxValidity
public TemporalAmount getMaxValidity()
-
setEnabled
public void setEnabled(boolean enabled)
-
setJwtSigningKey
public void setJwtSigningKey(org.apache.cxf.rs.security.jose.jwk.JsonWebKey jwtSigningKey)
-
setJwtEncryptionKey
public void setJwtEncryptionKey(org.apache.cxf.rs.security.jose.jwk.JsonWebKey jwtEncryptionKey)
-
setJwtAud
public void setJwtAud(String jwtAud)
-
setMaxValidity
public void setMaxValidity(TemporalAmount maxValidity)
-
setExcludeClusterPermissions
public void setExcludeClusterPermissions(List<String> excludeClusterPermissions)
-
getExcludeIndexPermissions
public List<RequestedPrivileges.ExcludedIndexPermissions> getExcludeIndexPermissions()
-
setExcludeIndexPermissions
public void setExcludeIndexPermissions(List<RequestedPrivileges.ExcludedIndexPermissions> excludeIndexPermissions)
-
parse
public static AuthTokenServiceConfig parse(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
parseYaml
public static AuthTokenServiceConfig parseYaml(String yaml) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
getMaxTokensPerUser
public int getMaxTokensPerUser()
-
setMaxTokensPerUser
public void setMaxTokensPerUser(int maxTokensPerUser)
-
getFreezePrivileges
public AuthTokenServiceConfig.FreezePrivileges getFreezePrivileges()
-
setFreezePrivileges
public void setFreezePrivileges(AuthTokenServiceConfig.FreezePrivileges freezePrivileges)
-
-