public static class DefaultOAuth1Provider.Consumer extends Object implements OAuth1Consumer
OAuth1Consumer.| Modifier and Type | Method and Description |
|---|---|
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".
|
public String getKey()
OAuth1ConsumergetKey in interface OAuth1Consumerpublic String getSecret()
OAuth1ConsumergetSecret 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 roleboolean indicating whether this token is authorized for
a given roleCopyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.