Package org.jclouds.sts.options
Class SessionCredentialsOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.sts.options.SessionCredentialsOptions
-
- All Implemented Interfaces:
Cloneable
,HttpRequestOptions
public class SessionCredentialsOptions extends BaseHttpRequestOptions implements Cloneable
Options used to get a session token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionCredentialsOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description SessionCredentialsOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.Multimap<String,String>
buildFormParameters()
Builds form parameters representing options.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
-
-
-
-
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()
Description copied from interface:HttpRequestOptions
Builds form parameters representing options.- Specified by:
buildFormParameters
in interfaceHttpRequestOptions
- Overrides:
buildFormParameters
in classBaseHttpRequestOptions
- Returns:
- map that may contain query parameters.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseHttpRequestOptions
-
clone
public SessionCredentialsOptions clone()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBaseHttpRequestOptions
-
toString
public String toString()
- Overrides:
toString
in classBaseHttpRequestOptions
-
-