Examples of Identifier


Examples of org.openid4java.discovery.Identifier

                       "null assertion or discovered information.");

            return result;
        }

        Identifier claimedId = discovered.isVersion2() ?
            _discovery.parseIdentifier(authResp.getClaimed()) : //may have frag
            discovered.getClaimedIdentifier(); //assert id may be delegate in v1

        String handle = authResp.getHandle();
        URL op = discovered.getOPEndpoint();
        Association assoc = _associations.load(op.toString(), handle);

        if (assoc != null) // association available, local verification
        {
            _log.info("Found association: " + assoc.getHandle() +
                      " verifying signature locally...");
            String text = authResp.getSignedText();
            String signature = authResp.getSignature();

            if (assoc.verifySignature(text, signature))
            {
                result.setVerifiedId(claimedId);
                if (DEBUG) _log.debug("Local signature verification succeeded.");
            }
            else if (DEBUG)
            {
                _log.debug("Local signature verification failed.");
                result.setStatusMsg("Local signature verification failed");
            }

        }
        else // no association, verify with the OP
        {
            _log.info("No association found, " +
                      "contacting the OP for direct verification...");

            VerifyRequest vrfy = VerifyRequest.createVerifyRequest(authResp);

            ParameterList responseParams = new ParameterList();

            int respCode = call(op.toString(), vrfy, responseParams);
            if (HttpStatus.SC_OK == respCode)
            {
                VerifyResponse vrfyResp =
                        VerifyResponse.createVerifyResponse(responseParams);

                vrfyResp.validate();

                if (vrfyResp.isSignatureVerified())
                {
                    // process the optional invalidate_handle first
                    String invalidateHandle = vrfyResp.getInvalidateHandle();
                    if (invalidateHandle != null)
                        _associations.remove(op.toString(), invalidateHandle);

                    result.setVerifiedId(claimedId);
                    if (DEBUG)
                        _log.debug("Direct signature verification succeeded " +
                                   "with OP: " + op);
                }
                else
                {
                    if (DEBUG)
                        _log.debug("Direct signature verification failed " +
                                "with OP: " + op);
                    result.setStatusMsg("Direct signature verification failed.");
                }
            }
            else
            {
                DirectError err = DirectError.createDirectError(responseParams);

                if (DEBUG) _log.debug("Error verifying signature with the OP: "
                       + op + " error message: " + err.keyValueFormEncoding());

                result.setStatusMsg("Error verifying signature with the OP: "
                                    + err.getErrorMsg());
            }
        }

        Identifier verifiedID = result.getVerifiedId();
        if (verifiedID != null)
            _log.info("Verification succeeded for: " + verifiedID);

        else
            _log.error("Verification failed for: " + authResp.getClaimed()
View Full Code Here

Examples of org.openid4java.discovery.Identifier

    }
  }

  private void processReturn(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    Identifier identifier = this.verifyResponse(req);
    LOG.debug("identifier: " + identifier);
    if (identifier == null) {
      this.getServletContext().getRequestDispatcher("/index.jsp")
          .forward(req, resp);
    } else {
      req.setAttribute("identifier", identifier.getIdentifier());
      this.getServletContext().getRequestDispatcher("/return.jsp")
          .forward(req, resp);
    }
  }
View Full Code Here

Examples of org.openid4java.discovery.Identifier

      VerificationResult verification = manager.verify(receivingURL
          .toString(), response, discovered);

      // examine the verification result and extract the verified
      // identifier
      Identifier verified = verification.getVerifiedId();
      if (verified != null) {
        AuthSuccess authSuccess = (AuthSuccess) verification
            .getAuthResponse();

        receiveSimpleRegistration(httpReq, authSuccess);
View Full Code Here

Examples of org.owasp.dependencycheck.dependency.Identifier

        final Confidence bestEvidenceQuality = collected.get(0).getEvidenceConfidence();
        boolean identifierAdded = false;
        for (IdentifierMatch m : collected) {
            if (bestIdentifierQuality.equals(m.getConfidence())
                    && bestEvidenceQuality.equals(m.getEvidenceConfidence())) {
                final Identifier i = m.getIdentifier();
                if (bestIdentifierQuality == IdentifierConfidence.BEST_GUESS) {
                    i.setConfidence(Confidence.LOW);
                } else {
                    i.setConfidence(bestEvidenceQuality);
                }
                dependency.addIdentifier(i);
                identifierAdded = true;
            }
        }
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.rm.IdentifierDocument.Identifier

       
        sequenceStore.create(s);
       
        CreateSequenceResponseDocument responseDoc = CreateSequenceResponseDocument.Factory.newInstance();
        CreateSequenceResponseType response = responseDoc.addNewCreateSequenceResponse();
        Identifier identifier = response.addNewIdentifier();
        identifier.setStringValue(s.identifier);
        if(s.expires!=0)
            response.setExpires(convertToDuration(s.expires));
           
        return null;
    }
View Full Code Here

Examples of org.springframework.expression.spel.ast.Identifier

   * TODO AndyC Could create complete identifiers (a.b.c) here rather than a sequence of them? (a, b, c)
   */
  private SpelNodeImpl eatPossiblyQualifiedId() {
    List<SpelNodeImpl> qualifiedIdPieces = new ArrayList<SpelNodeImpl>();
    Token startnode = eatToken(TokenKind.IDENTIFIER);
    qualifiedIdPieces.add(new Identifier(startnode.stringValue(),toPos(startnode)));
    while (peekToken(TokenKind.DOT,true)) {
      Token node = eatToken(TokenKind.IDENTIFIER);
      qualifiedIdPieces.add(new Identifier(node.stringValue(),toPos(node)));             
    }
    return new QualifiedIdentifier(toPos(startnode.startpos,qualifiedIdPieces.get(qualifiedIdPieces.size()-1).getEndPosition()),qualifiedIdPieces.toArray(new SpelNodeImpl[qualifiedIdPieces.size()]));
  }
View Full Code Here

Examples of org.springframework.roo.addon.jpa.identifier.Identifier

        // Get the governor's members
        final MemberDetails governorMemberDetails = getMemberDetails(governorPhysicalType);

        // Get the governor's ID field, if any
        final Identifier identifier = getIdentifier(metadataIdentificationString);

        boolean isGaeEnabled = false;
        boolean isDatabaseDotComEnabled = false;
        final String moduleName = PhysicalTypeIdentifierNamingUtils.getPath(
                metadataIdentificationString).getModule();
View Full Code Here

Examples of org.xmlsoap.schemas.ws._2005._02.rm.Identifier

            Expires expires = new Expires();
            createArguments.setExpires(expires);
        }

        CreateSequenceResponseType response = sequenceManager.createSequence(createArguments);
        Identifier identifier = response.getIdentifier();
        String value = identifier.getValue();
        assertNotNull("Should have an identifier", value);
       
        System.out.println("Created identifier: " + value);
        System.out.println("Accept: " + response.getAccept());
       
View Full Code Here

Examples of railo.transformer.bytecode.literal.Identifier

   
     
     
    // get First Element of the Variable
    Position line = data.cfml.getPosition();
    Identifier id = identifier(data,false,true);
    if(id == null) {
        if (!data.cfml.forwardIfCurrent('(')) return null;
       
            comments(data);
      Expression expr = assignOp(data);

      if (!data.cfml.forwardIfCurrent(')'))
        throw new TemplateException(
          data.cfml,
          "Invalid Syntax Closing [)] not found");
            comments(data);
            return expr;//subDynamic(expr);
           
    }
     
    Variable var;
        comments(data);
   
    // Boolean constant
    if(id.getString().equalsIgnoreCase("TRUE"))  {// || name.equals("YES"))  {
      comments(data);
      return new LitBoolean(true,line,data.cfml.getPosition());
    }
    else if(id.getString().equalsIgnoreCase("FALSE"))  {// || name.equals("NO"))  {
      comments(data);
      return new LitBoolean(false,line,data.cfml.getPosition());
    }
    else if(NullSupportHelper.full() && id.getString().equalsIgnoreCase("NULL"))  {
      comments(data);
      return new Null(line,data.cfml.getPosition());
    }
   
    // Extract Scope from the Variable
View Full Code Here

Examples of sun.tools.java.Identifier

    * If the user asked to keep the outer parent for an
   * inner class then we'll get the list of dependencies
   * the inner class may have and iterate over then by
   * "processing" them as well.
   */
  Identifier outer = null;
  if (ignoreOuter && cdef.isInnerClass() && cdef.isStatic())
      outer = cdef.getOuterClass().getName();
  for (Enumeration deps = cdef.getDependencies();
       deps.hasMoreElements(); )
  {
      Identifier dep = ((ClassDeclaration)deps.nextElement()).getName();
      /*
       * If we dont' want the outer parent class of an inner class
       * make this comparison.
       */
      if (outer != dep)
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.