public class KerberosIdentityDataFileWriter extends AbstractKerberosDataFileWriter implements KerberosIdentityDataFile
CSVPrinter
to create a CSV-formatted file.COMPONENT, DATA_FILE_NAME, HOSTNAME, KEYTAB_FILE_GROUP_ACCESS, KEYTAB_FILE_GROUP_NAME, KEYTAB_FILE_IS_CACHABLE, KEYTAB_FILE_OWNER_ACCESS, KEYTAB_FILE_OWNER_NAME, KEYTAB_FILE_PATH, PRINCIPAL, PRINCIPAL_TYPE, SERVICE
Modifier and Type | Method and Description |
---|---|
protected Iterable<String> |
getHeaderRecord()
Gets the header record for the CSV file
|
void |
writeRecord(String hostName,
String serviceName,
String serviceComponentName,
String principal,
String principalType,
String keytabFilePath,
String keytabFileOwnerName,
String keytabFileOwnerAccess,
String keytabFileGroupName,
String keytabFileGroupAccess,
String keytabFileCanCache)
Appends a new record to the data file
|
appendRecord, close, isClosed, open
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, open
public void writeRecord(String hostName, String serviceName, String serviceComponentName, String principal, String principalType, String keytabFilePath, String keytabFileOwnerName, String keytabFileOwnerAccess, String keytabFileGroupName, String keytabFileGroupAccess, String keytabFileCanCache) throws IOException
hostName
- a String containing the hostname column dataserviceName
- a String containing the service name column dataserviceComponentName
- a String containing the component name column dataprincipal
- a String containing the (raw, non-evaluated) principal "pattern"
column dataprincipalType
- a String declaring the principal type - expecting "service" or "user"keytabFilePath
- a String containing the destination keytab file path column datakeytabFileOwnerName
- a String containing the keytab file owner name column datakeytabFileOwnerAccess
- a String containing the keytab file owner access column data
(expected to be "r" or "rw")keytabFileGroupName
- a String containing the keytab file group name column datakeytabFileGroupAccess
- a String containing the keytab file group access column data
(expected to be "r", "rw", or "")keytabFileCanCache
- a String containing a boolean value (true, false) indicating
whether the generated keytab can be cached or notIOException
protected Iterable<String> getHeaderRecord()
AbstractKerberosDataFileWriter
getHeaderRecord
in class AbstractKerberosDataFileWriter
Copyright © 2022 Apache Software Foundation. All rights reserved.