public
|
#
__construct( JRA\Config\ARSAnnatech $pARSAnnatech, JRA\Config\Authenticate $pAuthenticate, JRA\Config\Server $pServer, JRA\Config\Version $pVersion )
ConfigInterface constructor.
ConfigInterface constructor.
Parameters
- $pARSAnnatech
- The config for all ars requests.
- $pAuthenticate
- The config for authenticate against the cAPI.
- $pServer
- The config which provides the server configuration for requesting.
- $pVersion
- The config which contains the version information of the cAPI.
|
public
|
#
setToken( string $pToken )
Sets the token for authentication.
Sets the token for authentication.
Parameters
- $pToken
- The token which should be set.
Throws
|
public
|
#
setCredentials( string $pUsername, string $pPassword )
Sets the user credentials for authentication.
Sets the user credentials for authentication.
Parameters
- $pUsername
- The username which should be set.
- $pPassword
- The password which should be set.
Throws
|
public
integer
|
#
getAuthenticationMethod( )
Returns the authentication method.
Returns the authentication method.
Returns
integer The id of the authentication method.
|
public
array|string
|
#
getAuthenticationCredentials( )
Return the authentication credentials for the selected authentication method.
Return the authentication credentials for the selected authentication method.
Returns
array|string Returns an array with the user credentials or returns an string with the token.
Throws
|
public
boolean
|
#
isAutoLoginOn( )
Checks if auto login is either on or off.
Checks if auto login is either on or off.
Returns
boolean Returns true if auto login if on, false otherwise.
|
public
|
#
setUrl( string $pUrl )
Sets the url which should be used for requesting the cAPI.
Sets the url which should be used for requesting the cAPI.
Parameters
- $pUrl
- The url which should be set.
Throws
|
public
string
|
#
getRestAPIUrl( )
Returns the optimized requesting url.
Returns the optimized requesting url.
Returns
string The optimized requesting url.
Throws
|
public
|
#
setSession( string $pSession )
Sets the session id of the current logged in session.
Sets the session id of the current logged in session.
Parameters
- $pSession
- The session which should be stored.
|
public
string
|
#
getSession( )
Return the session id.
Returns
string The session id of the current logged in session.
|