com.sun.jersey.oauth.client
Class NeedAuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| 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 |
NeedAuthorizationException
public NeedAuthorizationException(OAuthParameters parameters,
java.net.URI authorizationUri)
getOAuthParameters
public OAuthParameters getOAuthParameters()
getAuthorizationUri
public java.net.URI getAuthorizationUri()
Copyright © 2011 Oracle Corporation. All Rights Reserved.