com.sun.jersey.oauth.client
Class NeedAuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sun.jersey.oauth.client.NeedAuthorizationException
All Implemented Interfaces:
java.io.Serializable

public class NeedAuthorizationException
extends java.lang.RuntimeException

Thrown from a client request by the OAuthClientFilter if the request is not properly authorized. Client should redirect user to the URI returned from getAuthorizationUri(). Once authorization is obtained, client should add verifier code returned by the server into OAuth parameters object returned from getOAuthParameters().

Author:
Martin Matula
See Also:
Serialized Form

Constructor Summary
NeedAuthorizationException(OAuthParameters parameters, java.net.URI authorizationUri)
           
 
Method Summary
 java.net.URI getAuthorizationUri()
           
 OAuthParameters getOAuthParameters()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NeedAuthorizationException

public NeedAuthorizationException(OAuthParameters parameters,
                                  java.net.URI authorizationUri)
Method Detail

getOAuthParameters

public OAuthParameters getOAuthParameters()

getAuthorizationUri

public java.net.URI getAuthorizationUri()


Copyright © 2011 Oracle Corporation. All Rights Reserved.