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

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

Introduction

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

Prototype


public void setADDomainJoinPassword(String aDDomainJoinPassword) 

Source Link

Document

The Active Directory password for ADDomainJoinUser.

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}
 *///from   w ww  .  j  a va2  s. c o m
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;
}