Apache CXF API

org.apache.cxf.rs.security.oauth2.grants.owner
Class ResourceOwnerGrant

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.grants.AbstractGrant
      extended by org.apache.cxf.rs.security.oauth2.grants.owner.ResourceOwnerGrant
All Implemented Interfaces:
Serializable, AccessTokenGrant

public class ResourceOwnerGrant
extends AbstractGrant

See Also:
Serialized Form

Constructor Summary
ResourceOwnerGrant(String name, String password)
           
ResourceOwnerGrant(String name, String password, String scope)
           
ResourceOwnerGrant(String name, String password, String scope, String audience)
           
 
Method Summary
 javax.ws.rs.core.MultivaluedMap<String,String> toMap()
          Returns the map containing public grant parameters; can be used by clients requesting the access tokens.
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrant
getType, setAudience
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceOwnerGrant

public ResourceOwnerGrant(String name,
                          String password)

ResourceOwnerGrant

public ResourceOwnerGrant(String name,
                          String password,
                          String scope)

ResourceOwnerGrant

public ResourceOwnerGrant(String name,
                          String password,
                          String scope,
                          String audience)
Method Detail

toMap

public javax.ws.rs.core.MultivaluedMap<String,String> toMap()
Description copied from interface: AccessTokenGrant
Returns the map containing public grant parameters; can be used by clients requesting the access tokens.

Specified by:
toMap in interface AccessTokenGrant
Overrides:
toMap in class AbstractGrant
Returns:
the grant parameters

Apache CXF API

Apache CXF