@Entity public class KerberosKeytabPrincipalEntity extends Object
keytabPath
, principalName
, hostId
),
but hostId
in some cases can be null, and also this entity must be used in service mappings(this can
cause dup of keytabPath
, principalName
fields in related entities), so we have surrogate kkpId
id and unique constraint on (keytabPath
, principalName
, hostId
).Constructor and Description |
---|
KerberosKeytabPrincipalEntity() |
KerberosKeytabPrincipalEntity(KerberosKeytabEntity kerberosKeytabEntity,
HostEntity hostEntity,
KerberosPrincipalEntity kerberosPrincipalEntity) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsMapping(String serviceName,
String componentName) |
boolean |
equals(Object o) |
HostEntity |
getHostEntity() |
Long |
getHostId() |
String |
getHostName() |
KerberosKeytabEntity |
getKerberosKeytabEntity() |
KerberosPrincipalEntity |
getKerberosPrincipalEntity() |
String |
getKeytabPath() |
Long |
getKkpId() |
String |
getPrincipalName() |
List<KerberosKeytabServiceMappingEntity> |
getServiceMapping() |
com.google.common.collect.Multimap<String,String> |
getServiceMappingAsMultimap() |
int |
hashCode() |
Boolean |
isDistributed() |
boolean |
putServiceMapping(String service,
String component) |
void |
setDistributed(Boolean isDistributed) |
void |
setHostEntity(HostEntity hostEntity) |
void |
setKerberosKeytabEntity(KerberosKeytabEntity kke) |
void |
setKerberosPrincipalEntity(KerberosPrincipalEntity kerberosPrincipalEntity) |
void |
setKkpId(Long kkpId) |
void |
setServiceMapping(List<KerberosKeytabServiceMappingEntity> serviceMapping) |
public KerberosKeytabPrincipalEntity()
public KerberosKeytabPrincipalEntity(KerberosKeytabEntity kerberosKeytabEntity, HostEntity hostEntity, KerberosPrincipalEntity kerberosPrincipalEntity)
public Long getKkpId()
public void setKkpId(Long kkpId)
public Boolean isDistributed()
public void setDistributed(Boolean isDistributed)
public KerberosKeytabEntity getKerberosKeytabEntity()
public void setKerberosKeytabEntity(KerberosKeytabEntity kke)
public HostEntity getHostEntity()
public void setHostEntity(HostEntity hostEntity)
public KerberosPrincipalEntity getKerberosPrincipalEntity()
public void setKerberosPrincipalEntity(KerberosPrincipalEntity kerberosPrincipalEntity)
public String getKeytabPath()
public String getPrincipalName()
public Long getHostId()
public String getHostName()
public List<KerberosKeytabServiceMappingEntity> getServiceMapping()
public void setServiceMapping(List<KerberosKeytabServiceMappingEntity> serviceMapping)
public com.google.common.collect.Multimap<String,String> getServiceMappingAsMultimap()
Copyright © 2022 Apache Software Foundation. All rights reserved.