@Entity public class KerberosPrincipalEntity extends Object
Constructor and Description |
---|
KerberosPrincipalEntity()
Constructs an empty KerberosPrincipalEntity
|
KerberosPrincipalEntity(String principalName,
boolean service,
String cachedKeytabPath)
Constructs a new KerberosPrincipalEntity
|
Modifier and Type | Method and Description |
---|---|
void |
addKerberosKeytabPrincipal(KerberosKeytabPrincipalEntity kerberosKeytabPrincipalEntity) |
String |
getCachedKeytabPath()
Gets the location of the cached keytab file, if one exists
|
Collection<KerberosKeytabPrincipalEntity> |
getKerberosKeytabPrincipalEntities() |
String |
getPrincipalName()
Gets the principal name for this KerberosPrincipalEntity
|
boolean |
isService()
Indicates whether this KerberosPrincipalEntity represents a service principal (true) or not (false)
|
void |
setCachedKeytabPath(String cachedKeytabPath)
Sets the location of the cached keytab file, if one exists
|
void |
setKerberosKeytabPrincipalEntities(Collection<KerberosKeytabPrincipalEntity> kerberosKeytabPrincipalEntities) |
void |
setPrincipalName(String principalName)
Sets the principal name for this KerberosPrincipalEntity
|
void |
setService(boolean service)
Set whether this KerberosPrincipalEntity represents a service principal (true) or not (false)
|
public KerberosPrincipalEntity()
public KerberosPrincipalEntity(String principalName, boolean service, String cachedKeytabPath)
principalName
- a String declaring the principal nameservice
- a boolean value indicating whether the principal is a service principal (true) or not (false)cachedKeytabPath
- a String declaring the location of the related cached keytabpublic String getPrincipalName()
public void setPrincipalName(String principalName)
principalName
- a String indicating this KerberosPrincipalEntity's principal namepublic boolean isService()
public void setService(boolean service)
service
- true if this KerberosPrincipalEntity represents a service principal; otherwise falsepublic String getCachedKeytabPath()
public void setCachedKeytabPath(String cachedKeytabPath)
cachedKeytabPath
- a String the location of the cached keytab file, or not if one does not existpublic Collection<KerberosKeytabPrincipalEntity> getKerberosKeytabPrincipalEntities()
public void setKerberosKeytabPrincipalEntities(Collection<KerberosKeytabPrincipalEntity> kerberosKeytabPrincipalEntities)
public void addKerberosKeytabPrincipal(KerberosKeytabPrincipalEntity kerberosKeytabPrincipalEntity)
Copyright © 2022 Apache Software Foundation. All rights reserved.