org.jclouds.sts.options
Class SessionCredentialsOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.sts.options.SessionCredentialsOptions
All Implemented Interfaces:
Cloneable, org.jclouds.http.options.HttpRequestOptions

public class SessionCredentialsOptions
extends org.jclouds.http.options.BaseHttpRequestOptions
implements Cloneable

Options used to get a session token.

See Also:

Nested Class Summary
static class SessionCredentialsOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
 
Constructor Summary
SessionCredentialsOptions()
           
 
Method Summary
 com.google.common.collect.Multimap<String,String> buildFormParameters()
           
 SessionCredentialsOptions clone()
           
 SessionCredentialsOptions durationSeconds(long durationSeconds)
          The duration, in seconds, that the credentials should remain valid.
 boolean equals(Object obj)
          
 int hashCode()
          
 SessionCredentialsOptions serialNumber(String serialNumber)
          The identification number of the MFA device for the user.
 SessionCredentialsOptions tokenCode(String tokenCode)
          The value provided by the MFA device.
 String toString()
          
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, replaceHeader
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionCredentialsOptions

public SessionCredentialsOptions()
Method Detail

serialNumber

public SessionCredentialsOptions serialNumber(String serialNumber)
The identification number of the MFA device for the user.


durationSeconds

public SessionCredentialsOptions durationSeconds(long durationSeconds)
The duration, in seconds, that the credentials should remain valid. 12 hours is default. 15 minutes is current minimum.


tokenCode

public SessionCredentialsOptions tokenCode(String tokenCode)
The value provided by the MFA device.


buildFormParameters

public com.google.common.collect.Multimap<String,String> buildFormParameters()
Specified by:
buildFormParameters in interface org.jclouds.http.options.HttpRequestOptions
Overrides:
buildFormParameters in class org.jclouds.http.options.BaseHttpRequestOptions

hashCode

public int hashCode()

Overrides:
hashCode in class org.jclouds.http.options.BaseHttpRequestOptions

clone

public SessionCredentialsOptions clone()
Overrides:
clone in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class org.jclouds.http.options.BaseHttpRequestOptions

toString

public String toString()

Overrides:
toString in class org.jclouds.http.options.BaseHttpRequestOptions


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