Examples of Authkey


Examples of com.alu.e3.prov.restapi.model.Authkey

  }

  private static final ProvisionAuthentication fromDataModelToProvisionAuthentication(ApiDetail apiDetail) {
    if (apiDetail==null) throw new IllegalArgumentException("apiDetail must not be null");

    Authkey ak = new Authkey();
    ak.setKeyName    (apiDetail.getAuthKeyName());
    ak.setHeaderName  (apiDetail.getAuthHeaderName());

    ProvisionAuthentication p = new ProvisionAuthentication();
    p.setAuthKey    (ak);
    p.getAuths().addAll  (BeanConverterUtil.<AuthType, NBAuthType>fromDataModels(apiDetail.getEnabledAuthType()));
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.Authkey

  public void testAuthKeySuccess() throws Exception {
    setup.whenAnyExchangeReceived(new Processor() {
      @Override
      public void process(Exchange exchange) throws Exception {
        ProvisionAuthentication auth = new ProvisionAuthentication();
        Authkey authKey = new Authkey();
        authKey.setKeyName("MyAuthkeyValue");
        auth.getAuths().add(AuthType.AUTHKEY);
        auth.setAuthKey(authKey);

        setupExchange(exchange, auth);
      }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.Authkey

  public void testAllSuccess() throws Exception {
    setup.whenAnyExchangeReceived(new Processor() {
      @Override
      public void process(Exchange exchange) throws Exception {
        ProvisionAuthentication auth = new ProvisionAuthentication();
        Authkey authKey = new Authkey();
        authKey.setKeyName("MyAuthkeyValue");
        auth.setAuthKey(authKey);
        auth.getAuths().add(AuthType.IP_WHITE_LIST);
        auth.getAuths().add(AuthType.BASIC);       
        auth.getAuths().add(AuthType.AUTHKEY);       
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.Authkey

    api.setEndpoint("AEndpointURL");

    api.setStatus(Status.ACTIVE);

    ProvisionAuthentication pauth = new ProvisionAuthentication();
    Authkey authKey = new Authkey();
    authKey.setKeyName("key");
    pauth.setAuthKey(authKey);

    api.setAuthentication(pauth);

    pauth.getAuths().add(AuthType.AUTHKEY);
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.Authkey

    api.setStatus(Status.ACTIVE);


    ProvisionAuthentication pauth = new ProvisionAuthentication();
    Authkey authKey = new Authkey(); authKey.setKeyName("key");
    pauth.setAuthKey(authKey);

    api.setAuthentication(pauth);

    pauth.getAuths().add(AuthType.AUTHKEY);
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.Authkey

    exchange.setProperty(ExchangeConstantKeys.E3_API_ID.toString(), "MyApiID");
    exchange.setProperty(ExchangeConstantKeys.E3_API_ID_ENCODED.toString(), "MonApiIDEncoded");
    exchange.setProperty(ExchangeConstantKeys.E3_PROVISION_ID.toString(), "MyProvId");

    ProvisionAuthentication auth = new ProvisionAuthentication();
    Authkey authKey = new Authkey();
    authKey.setKeyName("MyAuthkeyValue");
    auth.getAuths().add(AuthType.AUTHKEY);
    auth.setAuthKey(authKey);

    HTTPSType httpsType = new HTTPSType();
    httpsType.setEnabled(https);
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

  }
  @Override
  @Transactional
  public void createAuth(Context ctx, Auth auth) {
    CommonRequestArgs cra = ctx.getRequest();
    AuthKey key = createAuth(auth, cra);
    ctx.getResponseHandler().addRow(key);
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

        }
        dataId = dataDao.insertData(sd, cra);
      }
    }
    auth.setDataId(dataId);
    AuthKey ak = authDao.insertAuth(auth, cra);
    if (ak == null) {
      ApplicationException.exception(CommonMessageID.NOT_FOUND.getMessage().setSysId(SecurityConstants.SYSTEM_ID));
    }
    return ak;
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

  }
  @Override
  @Transactional
  public void updateAuth(Context ctx, Auth auth) {
    CommonRequestArgs cra = ctx.getRequest();
    AuthKey key = updateAuth(auth, cra);
    ctx.getResponseHandler().addRow(key);
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

    if (auth.getData() != null && auth.getData().size() == 0) {
      dataId = -1; // no data bundle attached to authorisation.
    }
    auth.setDataId(dataId);
    AuthKey ak = authDao.updateAuth(auth, cra);
    if (ak == null) {
      ApplicationException.exception(CommonMessageID.NOT_FOUND.getMessage().setSysId(SecurityConstants.SYSTEM_ID));
    }
    return ak;
  }
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.