Example usage for com.amazonaws.services.elasticmapreduce.model KerberosAttributes setKdcAdminPassword

List of usage examples for com.amazonaws.services.elasticmapreduce.model KerberosAttributes setKdcAdminPassword

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticmapreduce.model KerberosAttributes setKdcAdminPassword.

Prototype


public void setKdcAdminPassword(String kdcAdminPassword) 

Source Link

Document

The password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster.

Usage

From source file:org.finra.herd.dao.impl.EmrDaoImpl.java

License:Apache License

/**
 * Creates an instance of {@link KerberosAttributes} from a given instance of {@link EmrClusterDefinitionKerberosAttributes}.
 *
 * @param emrClusterDefinitionKerberosAttributes the instance of {@link EmrClusterDefinitionKerberosAttributes}, may be null
 *
 * @return the instance of {@link KerberosAttributes}
 *//*  w w w . j  a va 2  s . c om*/
protected KerberosAttributes getKerberosAttributes(
        EmrClusterDefinitionKerberosAttributes emrClusterDefinitionKerberosAttributes) {
    KerberosAttributes kerberosAttributes = null;

    if (emrClusterDefinitionKerberosAttributes != null) {
        kerberosAttributes = new KerberosAttributes();
        kerberosAttributes
                .setADDomainJoinPassword(emrClusterDefinitionKerberosAttributes.getADDomainJoinPassword());
        kerberosAttributes.setADDomainJoinUser(emrClusterDefinitionKerberosAttributes.getADDomainJoinUser());
        kerberosAttributes.setCrossRealmTrustPrincipalPassword(
                emrClusterDefinitionKerberosAttributes.getCrossRealmTrustPrincipalPassword());
        kerberosAttributes.setKdcAdminPassword(emrClusterDefinitionKerberosAttributes.getKdcAdminPassword());
        kerberosAttributes.setRealm(emrClusterDefinitionKerberosAttributes.getRealm());
    }

    return kerberosAttributes;
}