Package com.sun.enterprise.deployment.runtime.connector

Examples of com.sun.enterprise.deployment.runtime.connector.Principal


  MapElement descriptor = (MapElement) getDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Cannot set info on null descriptor");
  }
  if (newDescriptor instanceof Principal) {
      Principal principal = (Principal) newDescriptor;
      if (principal.getValue(Principal.CREDENTIAL)==null) {
    descriptor.addPrincipal(principal);
      } else {
    descriptor.setBackendPrincipal(true);
    descriptor.setAttributeValue(MapElement.BACKEND_PRINCIPAL, Principal.USER_NAME, principal.getValue(Principal.USER_NAME));
    descriptor.setAttributeValue(MapElement.BACKEND_PRINCIPAL, Principal.PASSWORD, principal.getValue(Principal.PASSWORD));
    descriptor.setAttributeValue(MapElement.BACKEND_PRINCIPAL, Principal.CREDENTIAL, principal.getValue(Principal.CREDENTIAL));
   
      }
  }
    }
View Full Code Here


  MapElement descriptor = (MapElement) getDescriptor();
  if (descriptor==null) {
      throw new RuntimeException("Cannot set info on null descriptor");
  }
  if (newDescriptor instanceof Principal) {
      Principal principal = (Principal) newDescriptor;
      if (principal.getValue(Principal.CREDENTIAL)==null) {
    descriptor.addPrincipal(principal);
      } else {
    descriptor.setBackendPrincipal(true);
    descriptor.setAttributeValue(MapElement.BACKEND_PRINCIPAL, Principal.USER_NAME, principal.getValue(Principal.USER_NAME));
    descriptor.setAttributeValue(MapElement.BACKEND_PRINCIPAL, Principal.PASSWORD, principal.getValue(Principal.PASSWORD));
    descriptor.setAttributeValue(MapElement.BACKEND_PRINCIPAL, Principal.CREDENTIAL, principal.getValue(Principal.CREDENTIAL));
   
      }
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.runtime.connector.Principal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.