org.jboss.resteasy.auth.oauth
Interface OAuthToken


public interface OAuthToken

Represents either an OAuth Access or Request Token.

Author:
Stéphane Épardaud

Method Summary
 OAuthConsumer getConsumer()
          Returns this Token's Consumer.
 java.security.Principal getPrincipal()
          Returns this Token's Principal.
 java.util.Set<java.lang.String> getRoles()
          Returns this Token's role list.
 java.lang.String getSecret()
          Returns this Token's Secret
 java.lang.String getToken()
          Returns this Token's Token
 

Method Detail

getConsumer

OAuthConsumer getConsumer()
Returns this Token's Consumer.


getToken

java.lang.String getToken()
Returns this Token's Token


getSecret

java.lang.String getSecret()
Returns this Token's Secret


getPrincipal

java.security.Principal getPrincipal()
Returns this Token's Principal. This is the Principal that will be set for a Request Token when the User authorises it, and will be returned by the Access Token to be used to set the logged in Principal when the Consumer authenticates using this OAuth Access Token.


getRoles

java.util.Set<java.lang.String> getRoles()
Returns this Token's role list. This is the role list that will be set for a Request Token when the User authorises it, and will be returned by the Access Token to be used to set the logged in role list when the Consumer authenticates using this OAuth Access Token.



Copyright © 2009. All Rights Reserved.