Package no.kommune.bergen.soa.svarut.altinn.authorization.client

Examples of no.kommune.bergen.soa.svarut.altinn.authorization.client.AltinnAuthorization


  private AltinnAuthorizationDesicionPointExternalSettings settings;

  public void initWithPermitXACMLInMockService() {
    settings = new AltinnAuthorizationDesicionPointExternalSettings();
    settings.setEndpoint("http://brukes_ikke");
    altinnAuthorization = new AltinnAuthorization(settings);
    MockAuthorizationDecisionPointExternal client = new MockAuthorizationDecisionPointExternal(settings);
    client.setXACMLFile("AltinnAuthorizationDecisionPointExternalPermit.soap.response");
    altinnAuthorization.setAltinnAuthorizationDesicionPointExternalClient(client);
    CorrespondenceClient correspondenceClient = new CorrespondenceClient(MockCorrespondenceClient.newSettings());
    altinnFacade = new AltinnFacade(null, correspondenceClient, altinnAuthorization, null);
View Full Code Here


  }

  public void initWithDenyXACMLInMockService() {
    settings = new AltinnAuthorizationDesicionPointExternalSettings();
    settings.setEndpoint("http://brukes_ikke");
    altinnAuthorization = new AltinnAuthorization(settings);
    MockAuthorizationDecisionPointExternal client = new MockAuthorizationDecisionPointExternal(settings);
    client.setXACMLFile("AltinnAuthorizationDecisionPointExternalDeny.soap.response");
    altinnAuthorization.setAltinnAuthorizationDesicionPointExternalClient(client);
    CorrespondenceClient correspondenceClient = new CorrespondenceClient(MockCorrespondenceClient.newSettings());
    altinnFacade = new AltinnFacade(null, correspondenceClient, altinnAuthorization, null);
View Full Code Here

  }

  public void initWithNoReturnDataInMockService() {
    settings = new AltinnAuthorizationDesicionPointExternalSettings();
    settings.setEndpoint("http://brukes_ikke");
    altinnAuthorization = new AltinnAuthorization(settings);
    MockAuthorizationDecisionPointExternal client = new MockAuthorizationDecisionPointExternal(settings);
    altinnAuthorization.setAltinnAuthorizationDesicionPointExternalClient(client);
    CorrespondenceClient correspondenceClient = new CorrespondenceClient(MockCorrespondenceClient.newSettings());
    altinnFacade = new AltinnFacade(null, correspondenceClient, altinnAuthorization, null);
    forsendelsesArkiv = createForsendesesArkiv();
View Full Code Here

        downloadContext.getHelpLinkText(), downloadContext.getReaderDownloadLink(), downloadContext.getReaderDownloadLinkText());
  }

  private AltinnFacade createAltinnFacade(CorrespondenceSettings correspondenceSettings, AltinnAuthorizationDesicionPointExternalSettings authorizationSettings) {
    CorrespondenceClient correspondenceClient = new CorrespondenceClient(correspondenceSettings);
    AltinnAuthorization altinnAuthorization = new AltinnAuthorization(authorizationSettings);
    return new AltinnFacade(templateEngine, correspondenceClient, altinnAuthorization, velocityModelFactory);
  }
View Full Code Here

TOP

Related Classes of no.kommune.bergen.soa.svarut.altinn.authorization.client.AltinnAuthorization

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.