Class NSServiceAuth
Properties for service authentication.
Syntax
Constructors
NSServiceAuth()
Initializes a new instance of the NSServiceAuth class.
Declaration
NSServiceAuth
Methods
GetAuthType()
Properties for service authentication.
Declaration
String GetAuthType()
Returns
Type | Description |
---|---|
String | The type of authentication, plain-text, OAuth... |
Examples
NSServiceAuth thing;
String authType = thing.GetAuthType();
GetPassword()
Properties for service authentication.
Declaration
String GetPassword()
Returns
Type | Description |
---|---|
String | The (decrypted) password or token. |
Examples
NSServiceAuth thing;
String password = thing.GetPassword();
GetPort()
Properties for service authentication.
Declaration
Integer GetPort()
Returns
Type | Description |
---|---|
Integer | The server port. |
Examples
NSServiceAuth thing;
Integer port = thing.GetPort();
GetServer()
Properties for service authentication.
Declaration
String GetServer()
Returns
Type | Description |
---|---|
String | The mail server. |
Examples
NSServiceAuth thing;
String server = thing.GetServer();
GetServiceAuthId()
Properties for service authentication.
Declaration
Integer GetServiceAuthId()
Returns
Type | Description |
---|---|
Integer | The primary key. |
Examples
NSServiceAuth thing;
Integer serviceAuthId = thing.GetServiceAuthId();
GetUsername()
Properties for service authentication.
Declaration
String GetUsername()
Returns
Type | Description |
---|---|
String | The username. |
Examples
NSServiceAuth thing;
String username = thing.GetUsername();
SetAuthType(String)
Properties for service authentication.
Declaration
Void SetAuthType(String authType)
Parameters
Type | Name | Description |
---|---|---|
String | authType | The type of authentication, plain-text, OAuth... |
Returns
Type | Description |
---|---|
Void |
Examples
NSServiceAuth thing;
String authType;
thing.SetAuthType(authType);
SetPassword(String)
Properties for service authentication.
Declaration
Void SetPassword(String password)
Parameters
Type | Name | Description |
---|---|---|
String | password | The (decrypted) password or token. |
Returns
Type | Description |
---|---|
Void |
Examples
NSServiceAuth thing;
String password;
thing.SetPassword(password);
SetPort(Integer)
Properties for service authentication.
Declaration
Void SetPort(Integer port)
Parameters
Type | Name | Description |
---|---|---|
Integer | port | The server port. |
Returns
Type | Description |
---|---|
Void |
Examples
NSServiceAuth thing;
Integer port;
thing.SetPort(port);
SetServer(String)
Properties for service authentication.
Declaration
Void SetServer(String server)
Parameters
Type | Name | Description |
---|---|---|
String | server | The mail server. |
Returns
Type | Description |
---|---|
Void |
Examples
NSServiceAuth thing;
String server;
thing.SetServer(server);
SetServiceAuthId(Integer)
Properties for service authentication.
Declaration
Void SetServiceAuthId(Integer serviceAuthId)
Parameters
Type | Name | Description |
---|---|---|
Integer | serviceAuthId | The primary key. |
Returns
Type | Description |
---|---|
Void |
Examples
NSServiceAuth thing;
Integer serviceAuthId;
thing.SetServiceAuthId(serviceAuthId);
SetUsername(String)
Properties for service authentication.
Declaration
Void SetUsername(String username)
Parameters
Type | Name | Description |
---|---|---|
String | username | The username. |
Returns
Type | Description |
---|---|
Void |
Examples
NSServiceAuth thing;
String username;
thing.SetUsername(username);