Package com.google.api.ads.dfp.axis.v201311

Examples of com.google.api.ads.dfp.axis.v201311.Authentication


      // Create action.
      com.google.api.ads.dfp.axis.v201311.DeactivatePlacements action =
          new com.google.api.ads.dfp.axis.v201311.DeactivatePlacements();

      // Perform action.
      UpdateResult result =
          placementService.performPlacementAction(action, statementBuilder.toStatement());

      if (result != null && result.getNumChanges() > 0) {
        System.out.printf("Number of placements deactivated: %d\n", result.getNumChanges());
      } else {
        System.out.println("No placements were deactivated.");
      }
    }
  }
View Full Code Here


        new LongCreativeTemplateVariableValue();
    imageHeightVariableValue.setUniqueName("Imageheight");
    imageHeightVariableValue.setValue(250L);

    // Create the URL variable value.
    UrlCreativeTemplateVariableValue urlVariableValue =
        new UrlCreativeTemplateVariableValue();
    urlVariableValue.setUniqueName("ClickthroughURL");
    urlVariableValue.setValue("www.google.com");

    // Create the target window variable value.
    StringCreativeTemplateVariableValue targetWindowVariableValue =
        new StringCreativeTemplateVariableValue();
    targetWindowVariableValue.setUniqueName("Targetwindow");
View Full Code Here

        try {

            RecoverRequest request = createRecoverRequest();
            request.setServiceURI(serverURL);

            Authentication authentication = new Authentication();
            Key authenKey = XKMSKeyUtil.getAuthenticationKey(passPhrase);
            authentication.setKeyBindingAuthenticationKey(authenKey);
            request.setAuthentication(authentication);

            RecoverKeyBinding keyBinding = createRecoverKeyBinding();
            keyBinding.setKeyName(alias);
View Full Code Here

        request.setId(XKMSUtil.getRamdomId());
        return request;
    }

    public static Authentication createAuthenticate() {
        Authentication authentication = new Authentication();
        return authentication;
    }
View Full Code Here

     * Prepares an KRSSRequest message for validation.
     */
    private void prepare(KRSSRequest request,
            KeyBindingAbstractType abstractType) throws XKMSException {

        Authentication authentication = request.getAuthentication();
        authentication.setKeyBindingAuthenticationKey(authkey);

        KeyInfo keyInfo = abstractType.getKeyInfo();
        if (keyInfo != null) {
            try {

View Full Code Here

    private void validate(KRSSRequest request) throws XKMSException {

        validate((MessageAbstractType) request);

        Authentication authentication = request.getAuthentication();
        XMLSignature keyBindingAuthentication = authentication
                .getKeyBindingAuthentication();

        Key keyBindingAuthenticationKey = authentication
                .getKeyBindingAuthenticationKey();
        try {
            if (!keyBindingAuthentication
                    .checkSignatureValue(keyBindingAuthenticationKey)) {
                throw new XKMSException(XKMSException.NO_AUTHENTICATION,
View Full Code Here

        OMElement authenticationElem = element
                .getFirstChildWithName(XKMS2Constants.Q_ELEM_AUTHENTICATION);
       
        if (authenticationElem != null) {
           
            Authentication authentication = new Authentication();
           
            OMElement keyBindingAuthElem = authenticationElem
                    .getFirstChildWithName(XKMS2Constants.Q_ELEM_KEY_BINDING_AUTH);

            if (keyBindingAuthElem != null) {
View Full Code Here

            KeyResolverException {
        OMElement registerRequestElem = getResourceAsElement("T1_RegisterRequest-http.xml");
        RegisterRequest registerRequest = (RegisterRequest) RegisterRequestBuilder.INSTANCE
                .buildElement(registerRequestElem);

        Authentication authentication = registerRequest.getAuthentication();
        XMLSignature keyBindingAuthentication = authentication
                .getKeyBindingAuthentication();
        assertTrue(keyBindingAuthentication.checkSignatureValue(authKey));

        PrototypeKeyBinding prototypeKeyBinding = registerRequest
                .getPrototypeKeyBinding();
View Full Code Here

    public void testBuilder() throws XKMSException, XMLSignatureException {
        OMElement recoverRequestElem = getResourceAsElement("T4_RecoverRequest-http.xml");
        RecoverRequest recoverRequest = (RecoverRequest) RecoverRequestBuilder.INSTANCE
                .buildElement(recoverRequestElem);
       
        Authentication authentication = recoverRequest.getAuthentication();
        XMLSignature keyBindingAuthentication = authentication
                .getKeyBindingAuthentication();
       
        assertTrue(keyBindingAuthentication.checkSignatureValue(authKey));
    }
View Full Code Here

        request.setId(XKMSUtil.getRamdomId());
        return request;
    }
   
    public static Authentication createAuthenticate() {
        Authentication authentication = new Authentication();
        return authentication;
    }
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.axis.v201311.Authentication

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.