OAuthNetworkCredential

Inheritance: java.lang.Object, com.aspose.ms.System.Net.NetworkCredential

All Implemented Interfaces: com.aspose.ms.System.Net.ICredentialsByHost

public class OAuthNetworkCredential extends System.Net.NetworkCredential implements System.Net.ICredentialsByHost

Represents the NetworkCredential for OAuth authentication.

Constructors

ConstructorDescription
OAuthNetworkCredential(String accessToken)Initializes a new instance of the OAuthNetworkCredential class
OAuthNetworkCredential(ITokenProvider tokenProvider)Initializes a new instance of the OAuthNetworkCredential class
OAuthNetworkCredential(String userName, String accessToken)Initializes a new instance of the OAuthNetworkCredential class
OAuthNetworkCredential(String userName, ITokenProvider tokenProvider)Initializes a new instance of the OAuthNetworkCredential class

Methods

MethodDescription
equals(Object arg0)
getAccessToken()Gets OAuth 2.0 access token.
getClass()
getCredential(System.Uri uri, String authType)
getCredential(String host, int port, String authenticationType){@inheritDoc}
getDomain()
getPassword()
getTokenProvider()Gets the token provider.
getUserName()
hashCode()
notify()
notifyAll()
setDomain(String value)
setPassword(String value)
setUserName(String value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

OAuthNetworkCredential(String accessToken)

public OAuthNetworkCredential(String accessToken)

Initializes a new instance of the OAuthNetworkCredential class

Parameters:

ParameterTypeDescription
accessTokenjava.lang.StringAccess token

OAuthNetworkCredential(ITokenProvider tokenProvider)

public OAuthNetworkCredential(ITokenProvider tokenProvider)

Initializes a new instance of the OAuthNetworkCredential class

Parameters:

ParameterTypeDescription
tokenProviderITokenProviderToken provider

OAuthNetworkCredential(String userName, String accessToken)

public OAuthNetworkCredential(String userName, String accessToken)

Initializes a new instance of the OAuthNetworkCredential class

Parameters:

ParameterTypeDescription
userNamejava.lang.StringUser name
accessTokenjava.lang.StringAccess token

OAuthNetworkCredential(String userName, ITokenProvider tokenProvider)

public OAuthNetworkCredential(String userName, ITokenProvider tokenProvider)

Initializes a new instance of the OAuthNetworkCredential class

Parameters:

ParameterTypeDescription
userNamejava.lang.StringUser name
tokenProviderITokenProviderToken provider

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAccessToken()

public final String getAccessToken()

Gets OAuth 2.0 access token.

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCredential(System.Uri uri, String authType)

public System.Net.NetworkCredential getCredential(System.Uri uri, String authType)

Parameters:

ParameterTypeDescription
uricom.aspose.ms.System.Uri
authTypejava.lang.String

Returns: com.aspose.ms.System.Net.NetworkCredential

getCredential(String host, int port, String authenticationType)

public final System.Net.NetworkCredential getCredential(String host, int port, String authenticationType)

Parameters:

ParameterTypeDescription
hostjava.lang.String
portint
authenticationTypejava.lang.String

Returns: com.aspose.ms.System.Net.NetworkCredential

getDomain()

public String getDomain()

Returns: java.lang.String

getPassword()

public String getPassword()

Returns: java.lang.String

getTokenProvider()

public final ITokenProvider getTokenProvider()

Gets the token provider.

Returns: ITokenProvider

getUserName()

public String getUserName()

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDomain(String value)

public void setDomain(String value)

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPassword(String value)

public void setPassword(String value)

Parameters:

ParameterTypeDescription
valuejava.lang.String

setUserName(String value)

public void setUserName(String value)

Parameters:

ParameterTypeDescription
valuejava.lang.String

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int