Package org.refcodes.net
Class OauthFieldsImpl
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.util.List<java.lang.String>>
-
- org.refcodes.net.AbstractHttpFields<FormFields>
-
- org.refcodes.net.FormFieldsImpl
-
- org.refcodes.net.OauthFieldsImpl
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.util.List<java.lang.String>>
,org.refcodes.mixin.Dumpable
,FormFields
,HttpFields<FormFields>
public class OauthFieldsImpl extends FormFieldsImpl implements org.refcodes.mixin.Dumpable
The Class OauthFieldsImpl.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OauthFieldsImpl()
Instantiates a new oauth fields impl.OauthFieldsImpl(GrantType aGrantType, java.lang.String aClientId, java.lang.String aRefreshToken)
Instantiates a new oauth fields impl.OauthFieldsImpl(GrantType aGrantType, java.lang.String aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.OauthFieldsImpl(GrantType aGrantType, java.lang.String aClientId, java.lang.String aClientSecret, java.lang.String aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.OauthFieldsImpl(GrantType aGrantType, java.lang.String aClientId, java.lang.String aClientSecret, java.net.URL aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.OauthFieldsImpl(GrantType aGrantType, java.net.URL aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientId()
Gets the client id.java.lang.String
getClientSecret()
Gets the client secret.GrantType
getGrantType()
Gets the grant type.java.lang.String
getPassword()
Gets the password.java.lang.String
getRedirectUri()
Gets the redirect uri.java.lang.String
getRefreshToken()
Gets the refresh token.java.lang.String
getUserName()
Gets the user name.void
setClientId(java.lang.String aClientId)
Sets the client id.void
setClientSecret(java.lang.String aClientSecret)
Sets the client secret.void
setGrantType(GrantType aGrantType)
Sets the grant type.void
setPassword(java.lang.String aPassword)
Sets the password.void
setRedirectUri(java.lang.String aRedirectUri)
Sets the redirect uri.void
setRefreshToken(java.lang.String aRefreshToken)
Sets the refresh token.void
setUserName(java.lang.String aUserName)
Sets the user name.-
Methods inherited from class org.refcodes.net.AbstractHttpFields
copyHttpFields
-
Methods inherited from interface org.refcodes.net.FormFields
fromBodyFormFields, fromUrl, fromUrlQueryString, toBodyFormFields, toUrlQueryString
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.refcodes.net.HttpFields
addTo, addTo, addTo, addTo, addTo, addTo, getFirst, getFirst, put, put, put, put, toField, toField, withAddTo, withAddTo, withAddTo, withAddTo, withAddTo, withAddTo, withPut, withPut, withPut, withPut, withPut, withPut
-
-
-
-
Constructor Detail
-
OauthFieldsImpl
public OauthFieldsImpl()
Instantiates a new oauth fields impl.
-
OauthFieldsImpl
public OauthFieldsImpl(GrantType aGrantType, java.net.URL aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.- Parameters:
aGrantType
- the grant typeaRedirectUri
- the redirect uriaUserName
- the user nameaPassword
- the password
-
OauthFieldsImpl
public OauthFieldsImpl(GrantType aGrantType, java.lang.String aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.- Parameters:
aGrantType
- the grant typeaRedirectUri
- the redirect uriaUserName
- the user nameaPassword
- the password
-
OauthFieldsImpl
public OauthFieldsImpl(GrantType aGrantType, java.lang.String aClientId, java.lang.String aClientSecret, java.net.URL aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.- Parameters:
aGrantType
- the grant typeaClientId
- the client idaClientSecret
- the client secretaRedirectUri
- the redirect uriaUserName
- the user nameaPassword
- the password
-
OauthFieldsImpl
public OauthFieldsImpl(GrantType aGrantType, java.lang.String aClientId, java.lang.String aClientSecret, java.lang.String aRedirectUri, java.lang.String aUserName, java.lang.String aPassword)
Instantiates a new oauth fields impl.- Parameters:
aGrantType
- the grant typeaClientId
- the client idaClientSecret
- the client secretaRedirectUri
- the redirect uriaUserName
- the user nameaPassword
- the password
-
OauthFieldsImpl
public OauthFieldsImpl(GrantType aGrantType, java.lang.String aClientId, java.lang.String aRefreshToken)
Instantiates a new oauth fields impl.- Parameters:
aGrantType
- the grant typeaClientId
- the client idaRefreshToken
- the refresh token
-
-
Method Detail
-
getGrantType
public GrantType getGrantType()
Gets the grant type.- Returns:
- the grant type
-
setGrantType
public void setGrantType(GrantType aGrantType)
Sets the grant type.- Parameters:
aGrantType
- the new grant type
-
getClientId
public java.lang.String getClientId()
Gets the client id.- Returns:
- the client id
-
setClientId
public void setClientId(java.lang.String aClientId)
Sets the client id.- Parameters:
aClientId
- the new client id
-
getClientSecret
public java.lang.String getClientSecret()
Gets the client secret.- Returns:
- the client secret
-
setClientSecret
public void setClientSecret(java.lang.String aClientSecret)
Sets the client secret.- Parameters:
aClientSecret
- the new client secret
-
getRedirectUri
public java.lang.String getRedirectUri()
Gets the redirect uri.- Returns:
- the redirect uri
-
setRedirectUri
public void setRedirectUri(java.lang.String aRedirectUri)
Sets the redirect uri.- Parameters:
aRedirectUri
- the new redirect uri
-
getUserName
public java.lang.String getUserName()
Gets the user name.- Returns:
- the user name
-
setUserName
public void setUserName(java.lang.String aUserName)
Sets the user name.- Parameters:
aUserName
- the new user name
-
getPassword
public java.lang.String getPassword()
Gets the password.- Returns:
- the password
-
setPassword
public void setPassword(java.lang.String aPassword)
Sets the password.- Parameters:
aPassword
- the new password
-
getRefreshToken
public java.lang.String getRefreshToken()
Gets the refresh token.- Returns:
- the refresh token
-
setRefreshToken
public void setRefreshToken(java.lang.String aRefreshToken)
Sets the refresh token.- Parameters:
aRefreshToken
- the new refresh token
-
-