|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.oauth1.DefaultOAuth1Provider.Consumer
public static class DefaultOAuth1Provider.Consumer
Simple read-only implementation of OAuth1Consumer.
| Method Summary | |
|---|---|
javax.ws.rs.core.MultivaluedMap<String,String> |
getAttributes()
Returns additional attributes associated with the consumer (e.g. |
String |
getKey()
Returns consumer key. |
String |
getOwner()
Returns identifier of owner of this consumer - i.e. |
Principal |
getPrincipal()
Returns a Principal object representing this consumer. |
String |
getSecret()
Returns consumer secret. |
boolean |
isInRole(String role)
Returns a boolean indicating whether this consumer is authorized for the specified logical "role". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getKey()
OAuth1Consumer
getKey in interface OAuth1Consumerpublic String getSecret()
OAuth1Consumer
getSecret in interface OAuth1Consumerpublic String getOwner()
public javax.ws.rs.core.MultivaluedMap<String,String> getAttributes()
public Principal getPrincipal()
OAuth1ConsumerPrincipal 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.
getPrincipal in interface OAuth1Consumerpublic boolean isInRole(String role)
OAuth1ConsumerSecurityContext.isUserInRole(String) to this
method.
isInRole in interface OAuth1Consumerrole - 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 | |||||||||