Package com.hazelcast.config.security
Class RealmConfig
java.lang.Object
com.hazelcast.config.security.RealmConfig
Security realm represents the security configuration for part of the system (e.g. member-to-member communication).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns configuredAccessControlServiceConfig
.int
hashCode()
boolean
boolean
setAccessControlServiceConfig
(AccessControlServiceConfig accessControlServiceConfig) Sets the access control service configuration.setCredentials
(Credentials credentials) setCredentialsFactoryConfig
(CredentialsFactoryConfig identityConfig) setJaasAuthenticationConfig
(JaasAuthenticationConfig authenticationConfig) setKerberosAuthenticationConfig
(KerberosAuthenticationConfig authenticationConfig) setKerberosIdentityConfig
(KerberosIdentityConfig identityConfig) setLdapAuthenticationConfig
(LdapAuthenticationConfig authenticationConfig) setSimpleAuthenticationConfig
(SimpleAuthenticationConfig authenticationConfig) setTlsAuthenticationConfig
(TlsAuthenticationConfig authenticationConfig) setTokenIdentityConfig
(TokenIdentityConfig identityConfig) setUsernamePasswordIdentityConfig
(UsernamePasswordIdentityConfig identityConfig) setUsernamePasswordIdentityConfig
(String username, String password) toString()
-
Field Details
-
DEFAULT_REALM
Default security realm instance.
-
-
Constructor Details
-
RealmConfig
public RealmConfig()
-
-
Method Details
-
getJaasAuthenticationConfig
-
setJaasAuthenticationConfig
-
getTlsAuthenticationConfig
-
setTlsAuthenticationConfig
-
getLdapAuthenticationConfig
-
setLdapAuthenticationConfig
-
getKerberosAuthenticationConfig
-
setKerberosAuthenticationConfig
public RealmConfig setKerberosAuthenticationConfig(KerberosAuthenticationConfig authenticationConfig) -
getSimpleAuthenticationConfig
-
setSimpleAuthenticationConfig
-
getUsernamePasswordIdentityConfig
-
setUsernamePasswordIdentityConfig
-
setUsernamePasswordIdentityConfig
-
getTokenIdentityConfig
-
setTokenIdentityConfig
-
getCredentialsFactoryConfig
-
setCredentialsFactoryConfig
-
getCredentialsIdentityConfig
-
setCredentialsIdentityConfig
-
setCredentials
-
getKerberosIdentityConfig
-
setKerberosIdentityConfig
-
getAccessControlServiceConfig
Returns configuredAccessControlServiceConfig
.- Returns:
- configured
AccessControlServiceConfig
instance - See Also:
-
setAccessControlServiceConfig
public RealmConfig setAccessControlServiceConfig(AccessControlServiceConfig accessControlServiceConfig) Sets the access control service configuration. An Access control service can be used by components that don't support Hazelcast's build-in permission system or which need to allow authorization plug-in mechanism.Access control service is RBAC based and allows implementing custom authentication and authorization mechanisms using custom state descriptions (authentication and authorization context objects). A successful authentication returns list of role names. Role names are used (provided as a parameter) when authorization is executed.
- Parameters:
accessControlServiceConfig
-AccessControlServiceConfig
to be configured in this security realm- Returns:
- this config
-
isAuthenticationConfigured
public boolean isAuthenticationConfigured() -
isIdentityConfigured
public boolean isIdentityConfigured() -
asLoginModuleConfigs
-
asCredentialsFactory
-
hashCode
public int hashCode() -
equals
-
toString
-