List of usage examples for com.amazonaws.services.elasticmapreduce.model KerberosAttributes setCrossRealmTrustPrincipalPassword
public void setCrossRealmTrustPrincipalPassword(String crossRealmTrustPrincipalPassword)
Required only when establishing a cross-realm trust with a KDC in a different realm.
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; }