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

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

Introduction

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

Prototype


public void setCrossRealmTrustPrincipalPassword(String crossRealmTrustPrincipalPassword) 

Source Link

Document

Required only when establishing a cross-realm trust with a KDC in a different realm.

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 ww  w .j a  v a2  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;
}