Class NSUntrustedCredentials
Credentials for external authentication.
Syntax
Constructors
NSUntrustedCredentials()
Initializes a new instance of the NSUntrustedCredentials class.
Declaration
NSUntrustedCredentials
Methods
GetComment()
Credentials for external authentication.
Declaration
String GetComment()
Returns
Type | Description |
---|---|
String | Description of credentials. Max 255 characters. |
Examples
NSUntrustedCredentials thing;
String comment = thing.GetComment();
GetIsActive()
Credentials for external authentication.
Declaration
Bool GetIsActive()
Returns
Type | Description |
---|---|
Bool | Is this credentials currently active. |
Examples
NSUntrustedCredentials thing;
Bool isActive = thing.GetIsActive();
GetPublicValue()
Credentials for external authentication.
Declaration
String GetPublicValue()
Returns
Type | Description |
---|---|
String | Data stored unencrypted in the db. Typically server and or username. Max 238 characters. |
Examples
NSUntrustedCredentials thing;
String publicValue = thing.GetPublicValue();
GetSecretValue()
Credentials for external authentication.
Declaration
String GetSecretValue()
Returns
Type | Description |
---|---|
String | Data stored encrypted in the db. Typically a password. Max 70 characters. |
Examples
NSUntrustedCredentials thing;
String secretValue = thing.GetSecretValue();
GetValidFrom()
Credentials for external authentication.
Declaration
DateTime GetValidFrom()
Returns
Type | Description |
---|---|
DateTime | Credentials are valid from this date. |
Examples
NSUntrustedCredentials thing;
DateTime validFrom = thing.GetValidFrom();
GetValidTo()
Credentials for external authentication.
Declaration
DateTime GetValidTo()
Returns
Type | Description |
---|---|
DateTime | Credentials are valid to this date. |
Examples
NSUntrustedCredentials thing;
DateTime validTo = thing.GetValidTo();
SetComment(String)
Credentials for external authentication.
Declaration
Void SetComment(String comment)
Parameters
Type | Name | Description |
---|---|---|
String | comment | Description of credentials. Max 255 characters. |
Returns
Type | Description |
---|---|
Void |
Examples
NSUntrustedCredentials thing;
String comment;
thing.SetComment(comment);
SetIsActive(Bool)
Credentials for external authentication.
Declaration
Void SetIsActive(Bool isActive)
Parameters
Type | Name | Description |
---|---|---|
Bool | isActive | Is this credentials currently active. |
Returns
Type | Description |
---|---|
Void |
Examples
NSUntrustedCredentials thing;
Bool isActive;
thing.SetIsActive(isActive);
SetPublicValue(String)
Credentials for external authentication.
Declaration
Void SetPublicValue(String publicValue)
Parameters
Type | Name | Description |
---|---|---|
String | publicValue | Data stored unencrypted in the db. Typically server and or username. Max 238 characters. |
Returns
Type | Description |
---|---|
Void |
Examples
NSUntrustedCredentials thing;
String publicValue;
thing.SetPublicValue(publicValue);
SetSecretValue(String)
Credentials for external authentication.
Declaration
Void SetSecretValue(String secretValue)
Parameters
Type | Name | Description |
---|---|---|
String | secretValue | Data stored encrypted in the db. Typically a password. Max 70 characters. |
Returns
Type | Description |
---|---|
Void |
Examples
NSUntrustedCredentials thing;
String secretValue;
thing.SetSecretValue(secretValue);
SetValidFrom(DateTime)
Credentials for external authentication.
Declaration
Void SetValidFrom(DateTime validFrom)
Parameters
Type | Name | Description |
---|---|---|
DateTime | validFrom | Credentials are valid from this date. |
Returns
Type | Description |
---|---|
Void |
Examples
NSUntrustedCredentials thing;
DateTime validFrom;
thing.SetValidFrom(validFrom);
SetValidTo(DateTime)
Credentials are valid to this date.
Declaration
Void SetValidTo(DateTime validTo)
Parameters
Type | Name | Description |
---|---|---|
DateTime | validTo | Credentials are valid to this date. |
Returns
Type | Description |
---|---|
Void |
Examples
NSUntrustedCredentials thing;
DateTime validTo;
thing.SetValidTo(validTo);