|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OAuthConsumer
Class representing a registered consumer.
Method Summary | |
---|---|
java.lang.String |
getKey()
Returns consumer key. |
java.security.Principal |
getPrincipal()
Returns a Principal object representing this consumer. |
java.lang.String |
getSecret()
Returns consumer secret. |
boolean |
isInRole(java.lang.String role)
Returns a boolean indicating whether this consumer is authorized for the specified logical "role". |
Method Detail |
---|
java.lang.String getKey()
java.lang.String getSecret()
java.security.Principal getPrincipal()
Principal
object representing this consumer.
When the oauth filter verifies the request
and no access token is provided, this is the principal that will get set to the security context.
This can be used for 2-legged oauth. If the server does not allow consumers acting
on their own (with no access token), this method should return null.
boolean isInRole(java.lang.String role)
SecurityContext.isUserInRole(java.lang.String)
to this
method.
role
- a String
specifying the name of the role
boolean
indicating whether this token is authorized for
a given role
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |