Examples of CredentialsHelper


Examples of jade.security.CredentialsHelper

    Object asynchNotificationKey = null;

    JADEPrincipal requesterPrincipal = null;
    Credentials requesterCredentials = null;
    try {
      CredentialsHelper ch = (CredentialsHelper) myAgent.getHelper("jade.core.security.Security");
      requesterPrincipal = ch.getPrincipal(request);
      requesterCredentials = ch.getCredentials(request);
    }
    catch (ServiceException se) {
      // Security plug in not installed --> Ignore it
    }
View Full Code Here

Examples of jade.security.CredentialsHelper

  private void initCredentials(Command cmd, AID id) {
    //#MIDP_EXCLUDE_BEGIN
    Agent agent = localAgents.acquire(id);
    if (agent != null) {
      try {
        CredentialsHelper ch = (CredentialsHelper) agent.getHelper("jade.core.security.Security");
        cmd.setPrincipal(ch.getPrincipal());
        cmd.setCredentials(ch.getCredentials());
      }
      catch (ServiceException se) {
        // The security plug-in is not there. Just ignore it
      }
    }
View Full Code Here

Examples of jade.security.CredentialsHelper

 
  private void initCredentials(Command cmd, AID id) {
    Agent agent = myContainer.acquireLocalAgent(id);
    if (agent != null) {
      try {
        CredentialsHelper ch = (CredentialsHelper) agent.getHelper("jade.core.security.Security");
        cmd.setPrincipal(ch.getPrincipal());
        cmd.setCredentials(ch.getCredentials());
      }
      catch (ServiceException se) {
        // The security plug-in is not there. Just ignore it
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.