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, openclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, openpublic 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 notIOExceptionprotected Iterable<String> getHeaderRecord()
AbstractKerberosDataFileWritergetHeaderRecord in class AbstractKerberosDataFileWriterCopyright © 2022 Apache Software Foundation. All rights reserved.