org.jclouds.oauth.v2.domain
Class OAuthCredentials

java.lang.Object
  extended by org.jclouds.domain.Credentials
      extended by org.jclouds.oauth.v2.domain.OAuthCredentials

public class OAuthCredentials
extends org.jclouds.domain.Credentials

Special kind credentials for oauth authentication that includes PrivateKey to sign requests.


Nested Class Summary
static class OAuthCredentials.Builder
           
 
Field Summary
 PrivateKey privateKey
          The private key associated with Credentials#identity.
 
Fields inherited from class org.jclouds.domain.Credentials
credential, identity
 
Constructor Summary
OAuthCredentials(String identity, String credential, PrivateKey privateKey)
           
 
Method Summary
static OAuthCredentials.Builder builder()
           
 boolean equals(Object obj)
          
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
           
 OAuthCredentials.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

privateKey

public final PrivateKey privateKey
The private key associated with Credentials#identity. Used to sign token requests.

Constructor Detail

OAuthCredentials

public OAuthCredentials(String identity,
                        String credential,
                        PrivateKey privateKey)
Method Detail

builder

public static OAuthCredentials.Builder builder()

toBuilder

public OAuthCredentials.Builder toBuilder()
Overrides:
toBuilder in class org.jclouds.domain.Credentials

equals

public boolean equals(Object obj)

Overrides:
equals in class org.jclouds.domain.Credentials

hashCode

public int hashCode()

Overrides:
hashCode in class org.jclouds.domain.Credentials

toString

public String toString()

Overrides:
toString in class org.jclouds.domain.Credentials

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.