Package com.hazelcast.config.security
Class KerberosAuthenticationConfig
- java.lang.Object
-
- com.hazelcast.config.security.AbstractClusterLoginConfig<KerberosAuthenticationConfig>
-
- com.hazelcast.config.security.KerberosAuthenticationConfig
-
- All Implemented Interfaces:
AuthenticationConfig
public class KerberosAuthenticationConfig extends AbstractClusterLoginConfig<KerberosAuthenticationConfig>
Typed authentication configuration for Kerberos tickets verification.
-
-
Constructor Summary
Constructors Constructor Description KerberosAuthenticationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginModuleConfig[]
asLoginModuleConfigs()
Converts current configuration to stack of login modules.boolean
equals(java.lang.Object obj)
java.lang.String
getKeytabFile()
LdapAuthenticationConfig
getLdapAuthenticationConfig()
java.lang.String
getPrincipal()
java.lang.Boolean
getRelaxFlagsCheck()
java.lang.String
getSecurityRealm()
java.lang.Boolean
getUseNameWithoutRealm()
int
hashCode()
protected java.util.Properties
initLoginModuleProperties()
protected KerberosAuthenticationConfig
self()
KerberosAuthenticationConfig
setKeytabFile(java.lang.String keytabFile)
Allows (together with thesetPrincipal(String)
) simplification of security realm configuration.KerberosAuthenticationConfig
setLdapAuthenticationConfig(LdapAuthenticationConfig ldapAuthenticationConfig)
Allows specifying LDAP authentication configuration which is then used after the Kerberos authentication successfully finishes.KerberosAuthenticationConfig
setPrincipal(java.lang.String principal)
Allows (together with thesetKeytabFile(String)
) simplification of security realm configuration.KerberosAuthenticationConfig
setRelaxFlagsCheck(java.lang.Boolean relaxFlagsCheck)
Allows disabling some of the checks on incoming token (e.g.KerberosAuthenticationConfig
setSecurityRealm(java.lang.String securityRealm)
References Security realm name in Hazelcast configuration.KerberosAuthenticationConfig
setUseNameWithoutRealm(java.lang.Boolean useNameWithoutRealm)
Allows cutting off the Kerberos realm part from authenticated name.java.lang.String
toString()
-
Methods inherited from class com.hazelcast.config.security.AbstractClusterLoginConfig
getSkipEndpoint, getSkipIdentity, getSkipRole, setIfConfigured, setIfConfigured, setIfConfigured, setSkipEndpoint, setSkipIdentity, setSkipRole
-
-
-
-
Method Detail
-
getRelaxFlagsCheck
public java.lang.Boolean getRelaxFlagsCheck()
-
setRelaxFlagsCheck
public KerberosAuthenticationConfig setRelaxFlagsCheck(java.lang.Boolean relaxFlagsCheck)
Allows disabling some of the checks on incoming token (e.g. passes authentication even if the mutual authentication is required by the token).
-
getSecurityRealm
public java.lang.String getSecurityRealm()
-
setUseNameWithoutRealm
public KerberosAuthenticationConfig setUseNameWithoutRealm(java.lang.Boolean useNameWithoutRealm)
Allows cutting off the Kerberos realm part from authenticated name. When set totrue
, the'@REALM'
part is removed from the name (e.g.jduke@ACME.COM
becomesjduke
).
-
getUseNameWithoutRealm
public java.lang.Boolean getUseNameWithoutRealm()
-
setSecurityRealm
public KerberosAuthenticationConfig setSecurityRealm(java.lang.String securityRealm)
References Security realm name in Hazelcast configuration. The realm's authentication configuration (when defined) will be used to fill the user object with Kerberos credentials (e.g. KeyTab entry).
-
getLdapAuthenticationConfig
public LdapAuthenticationConfig getLdapAuthenticationConfig()
-
setLdapAuthenticationConfig
public KerberosAuthenticationConfig setLdapAuthenticationConfig(LdapAuthenticationConfig ldapAuthenticationConfig)
Allows specifying LDAP authentication configuration which is then used after the Kerberos authentication successfully finishes.
-
getKeytabFile
public java.lang.String getKeytabFile()
-
setKeytabFile
public KerberosAuthenticationConfig setKeytabFile(java.lang.String keytabFile)
Allows (together with thesetPrincipal(String)
) simplification of security realm configuration. For basic scenarios you don't need to usesetSecurityRealm(String)
, but you can instead define directly kerberos principal name and keytab file path with credentials for given principal.This configuration is only used when there is no
securityRealm
configured.
-
getPrincipal
public java.lang.String getPrincipal()
-
setPrincipal
public KerberosAuthenticationConfig setPrincipal(java.lang.String principal)
Allows (together with thesetKeytabFile(String)
) simplification of security realm configuration. For basic scenarios you don't need to usesetSecurityRealm(String)
, but you can instead define directly kerberos principal name and keytab file path with credentials for given principal.This configuration is only used when there is no
securityRealm
configured.
-
initLoginModuleProperties
protected java.util.Properties initLoginModuleProperties()
- Overrides:
initLoginModuleProperties
in classAbstractClusterLoginConfig<KerberosAuthenticationConfig>
-
asLoginModuleConfigs
public LoginModuleConfig[] asLoginModuleConfigs()
Description copied from interface:AuthenticationConfig
Converts current configuration to stack of login modules.- Returns:
- login modules stack
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractClusterLoginConfig<KerberosAuthenticationConfig>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractClusterLoginConfig<KerberosAuthenticationConfig>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
self
protected KerberosAuthenticationConfig self()
- Specified by:
self
in classAbstractClusterLoginConfig<KerberosAuthenticationConfig>
-
-