Class SecurityConfig
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.SecurityConfig
-
public class SecurityConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_AUTH_PRINCIPAL_BUILDER_CLASS_CONFIG
static String
HTTP_AUTH_USER_IDENTITY_MANAGER_CLASS_CONFIG
static String
HTTP_AUTHORIZATION_MANAGER_CLASS_CONFIG
static String
HTTP_HEADLESS_CONFIG
static String
HTTP_RESTRICTED_ROLES_CONFIG
static String
REST_AUTHENTICATION_BASIC_SILENT_CONFIG
static String
REST_AUTHENTICATION_MECHANISM_CONFIG
static String
REST_AUTHENTICATION_REALM_CONFIG
static String
REST_AUTHENTICATION_ROLES_CONFIG
static String
REST_AUTHENTICATION_USERS_CONFIG
static String
SSL_ENABLE
static String
SSL_IGNORE_HOSTNAME_VERIFICATION
static String
SSL_KEY_PASSWORD_CONFIG
static String
SSL_KEYSTORE_LOCATION
static String
SSL_KEYSTORE_PASSWORD
static String
SSL_KEYSTORE_TYPE
static String
SSL_TRUSTSTORE_LOCATION
static String
SSL_TRUSTSTORE_PASSWORD
static String
SSL_TRUSTSTORE_TYPE
-
Constructor Summary
Constructors Constructor Description SecurityConfig(Conf conf)
Creates a newSecurityConfig
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthenticationMechanism()
AzkarraPrincipalBuilder
getAuthenticationPrincipalBuilder()
String
getAuthenticationRealm()
String
getAuthenticationRestricted()
String
getAuthenticationRoles()
String
getAuthenticationUsers()
AuthorizationManager
getAuthorizationManager()
char[]
getKeyPassword()
String
getKeystoreLocation()
char[]
getKeystorePassword()
String
getKeystoreType()
String
getTrustStoreLocation()
char[]
getTruststorePassword()
String
getTruststoreType()
UsersIdentityManager
getUserIdentityManager()
boolean
isBasicAuthenticationSilent()
boolean
isHeadless()
boolean
isHostnameVerificationIgnored()
boolean
isRestAuthenticationEnable()
boolean
isSslEnable()
-
-
-
Field Detail
-
REST_AUTHENTICATION_MECHANISM_CONFIG
public static final String REST_AUTHENTICATION_MECHANISM_CONFIG
- See Also:
- Constant Field Values
-
REST_AUTHENTICATION_REALM_CONFIG
public static final String REST_AUTHENTICATION_REALM_CONFIG
- See Also:
- Constant Field Values
-
REST_AUTHENTICATION_ROLES_CONFIG
public static final String REST_AUTHENTICATION_ROLES_CONFIG
- See Also:
- Constant Field Values
-
REST_AUTHENTICATION_USERS_CONFIG
public static final String REST_AUTHENTICATION_USERS_CONFIG
- See Also:
- Constant Field Values
-
REST_AUTHENTICATION_BASIC_SILENT_CONFIG
public static final String REST_AUTHENTICATION_BASIC_SILENT_CONFIG
- See Also:
- Constant Field Values
-
HTTP_AUTH_PRINCIPAL_BUILDER_CLASS_CONFIG
public static final String HTTP_AUTH_PRINCIPAL_BUILDER_CLASS_CONFIG
- See Also:
- Constant Field Values
-
HTTP_AUTHORIZATION_MANAGER_CLASS_CONFIG
public static final String HTTP_AUTHORIZATION_MANAGER_CLASS_CONFIG
- See Also:
- Constant Field Values
-
HTTP_AUTH_USER_IDENTITY_MANAGER_CLASS_CONFIG
public static final String HTTP_AUTH_USER_IDENTITY_MANAGER_CLASS_CONFIG
- See Also:
- Constant Field Values
-
HTTP_RESTRICTED_ROLES_CONFIG
public static final String HTTP_RESTRICTED_ROLES_CONFIG
- See Also:
- Constant Field Values
-
HTTP_HEADLESS_CONFIG
public static final String HTTP_HEADLESS_CONFIG
- See Also:
- Constant Field Values
-
SSL_ENABLE
public static final String SSL_ENABLE
- See Also:
- Constant Field Values
-
SSL_IGNORE_HOSTNAME_VERIFICATION
public static final String SSL_IGNORE_HOSTNAME_VERIFICATION
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_LOCATION
public static final String SSL_TRUSTSTORE_LOCATION
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_PASSWORD
public static final String SSL_TRUSTSTORE_PASSWORD
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_TYPE
public static final String SSL_TRUSTSTORE_TYPE
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_LOCATION
public static final String SSL_KEYSTORE_LOCATION
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_PASSWORD
public static final String SSL_KEYSTORE_PASSWORD
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_TYPE
public static final String SSL_KEYSTORE_TYPE
- See Also:
- Constant Field Values
-
SSL_KEY_PASSWORD_CONFIG
public static final String SSL_KEY_PASSWORD_CONFIG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityConfig
public SecurityConfig(Conf conf)
Creates a newSecurityConfig
instance.- Parameters:
conf
- theConf
instance, cannot benull
.
-
-
Method Detail
-
isHostnameVerificationIgnored
public boolean isHostnameVerificationIgnored()
-
isBasicAuthenticationSilent
public boolean isBasicAuthenticationSilent()
-
getAuthenticationMechanism
public String getAuthenticationMechanism()
-
getAuthenticationUsers
public String getAuthenticationUsers()
-
getAuthorizationManager
public AuthorizationManager getAuthorizationManager()
-
getUserIdentityManager
public UsersIdentityManager getUserIdentityManager()
-
getAuthenticationPrincipalBuilder
public AzkarraPrincipalBuilder getAuthenticationPrincipalBuilder()
-
getAuthenticationRealm
public String getAuthenticationRealm()
-
getAuthenticationRoles
public String getAuthenticationRoles()
-
getAuthenticationRestricted
public String getAuthenticationRestricted()
-
isHeadless
public boolean isHeadless()
-
isRestAuthenticationEnable
public boolean isRestAuthenticationEnable()
-
isSslEnable
public boolean isSslEnable()
-
getKeystoreLocation
public String getKeystoreLocation()
-
getKeystorePassword
public char[] getKeystorePassword()
-
getKeystoreType
public String getKeystoreType()
-
getKeyPassword
public char[] getKeyPassword()
-
getTrustStoreLocation
public String getTrustStoreLocation()
-
getTruststorePassword
public char[] getTruststorePassword()
-
getTruststoreType
public String getTruststoreType()
-
-