Package org.openid4java.message

Examples of org.openid4java.message.ParameterList


     
      if(adapter instanceof OpenIDLifecycle)
      {
         lifeCycle = (OpenIDLifecycle) adapter;
      }
      ParameterList responselist = new ParameterList(parameterMap);
     
      if(lifeCycle == null)
         throw new IllegalStateException("Lifecycle not found");
     
      DiscoveryInformation discovered =
View Full Code Here


  protected String getOpenIdReturnUrl() {
    return WicketUtils.toUrl(OpenIdReturnPage.class).toString();
  }

  public void processReturn(PageParameters params) {
    ParameterList response = new ParameterList(WicketUtils.toMap(params));
    try {
      VerificationResult verificationResult = getConsumerManager().verify(getOpenIdReturnUrl(), response,
          discoveryInformation);
      Identifier verifiedIdentifier = verificationResult.getVerifiedId();
      if (verifiedIdentifier != null) {
View Full Code Here

      throw new ProviderStateException();
    }
    try {
      // extract the parameters from the authentication response
      // (which comes in as a HTTP request from the OpenID provider)
      ParameterList response = new ParameterList(requestParams);

      // extract the receiving URL from the HTTP request
      StringBuffer receivingURL = new StringBuffer();
      receivingURL.append(successUrl);
      StringBuffer sb = new StringBuffer();
View Full Code Here

  protected String getOpenIdReturnUrl() {
    return WicketUtils.toAbsolutePath(OpenIdReturnPage.class);
  }

  public void processReturn(PageParameters params) {
    ParameterList response = new ParameterList(params);
    try {
      VerificationResult verificationResult = getConsumerManager().verify(getOpenIdReturnUrl(), response,
          discoveryInformation);
      Identifier verifiedIdentifier = verificationResult.getVerifiedId();
      if (verifiedIdentifier != null) {
View Full Code Here

                boolean authenticatedByProvider = false;
                boolean portalUserExists = false;
                try
                {
                    // request parameters
                    ParameterList authParams = new ParameterList(request.getParameterMap());

                    // retrieve OpenID provider from session
                    String provider = (String)httpSession.getAttribute(OPEN_ID_PROVIDER_ATTR_NAME);
                    DiscoveryInformation discovered = (DiscoveryInformation)httpSession.getAttribute(OPEN_ID_DISCOVERY_INFO_ATTR_NAME);
View Full Code Here

  // --- processing the authentication response ---
  public Identifier verifyResponse(HttpServletRequest httpReq) {
    try {
      // extract the parameters from the authentication response
      // (which comes in as a HTTP request from the OpenID provider)
      ParameterList response = new ParameterList(httpReq.getParameterMap());

      // retrieve the previously stored discovery information
      DiscoveryInformation discovered = (DiscoveryInformation) httpReq.getSession().getAttribute(
              "openid-disc");
View Full Code Here

TOP

Related Classes of org.openid4java.message.ParameterList

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.