Class PhoneRequest
Namespace: ActiveLogin.Authentication.BankId.Api.Models
Assembly: ActiveLogin.Authentication.BankId.Api.dll
Syntax
public abstract class PhoneRequest : object
Constructors
| Improve this Doc View SourcePhoneRequest(String, CallInitiator, Nullable<String>, Byte[], PhoneRequirement, Nullable<String>)
Declaration
public PhoneRequest(string personalIdentityNumber, CallInitiator callInitiator, string? userVisibleData, byte[] userNonVisibleData, PhoneRequirement requirement, string? userVisibleDataFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | personalIdentityNumber | The personal number of the user. String. 12 digits. |
CallInitiator | callInitiator | Indicate if the user or the RP initiated the phone call. user: user called the RP. RP: RP called the user. |
System.Nullable<System.String> | userVisibleData | The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. |
System.Byte[] | userNonVisibleData | Data not displayed to the user. |
PhoneRequirement | requirement | Requirements on how the phone auth or phone sign order must be performed. |
System.Nullable<System.String> | userVisibleDataFormat | If present, and set to "simpleMarkdownV1", this parameter indicates that userVisibleData holds formatting characters which, if used correctly, will make the text displayed with the user nicer to look at. For further information of formatting options, please study the document Guidelines for Formatted Text. |
PhoneRequest(String, CallInitiator, String)
Declaration
public PhoneRequest(string personalIdentityNumber, CallInitiator callInitiator, string userVisibleData)
Parameters
Type | Name | Description |
---|---|---|
System.String | personalIdentityNumber | The personal number of the user. String. 12 digits. |
CallInitiator | callInitiator | Indicate if the user or the RP initiated the phone call. user: user called the RP. RP: RP called the user. |
System.String | userVisibleData | The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. |
PhoneRequest(String, CallInitiator, String, Byte[])
Declaration
public PhoneRequest(string personalIdentityNumber, CallInitiator callInitiator, string userVisibleData, byte[] userNonVisibleData)
Parameters
Type | Name | Description |
---|---|---|
System.String | personalIdentityNumber | The personal number of the user. String. 12 digits. |
CallInitiator | callInitiator | Indicate if the user or the RP initiated the phone call. user: user called the RP. RP: RP called the user. |
System.String | userVisibleData | The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. |
System.Byte[] | userNonVisibleData | Data not displayed to the user. |
PhoneRequest(String, CallInitiator, String, Byte[], PhoneRequirement)
Declaration
public PhoneRequest(string personalIdentityNumber, CallInitiator callInitiator, string userVisibleData, byte[] userNonVisibleData, PhoneRequirement requirement)
Parameters
Type | Name | Description |
---|---|---|
System.String | personalIdentityNumber | The personal number of the user. String. 12 digits. |
CallInitiator | callInitiator | Indicate if the user or the RP initiated the phone call. user: user called the RP. RP: RP called the user. |
System.String | userVisibleData | The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. |
System.Byte[] | userNonVisibleData | Data not displayed to the user. |
PhoneRequirement | requirement | Requirements on how the phone auth or phone sign order must be performed. |
PhoneRequest(String, CallInitiator, String, String, Byte[])
Declaration
public PhoneRequest(string personalIdentityNumber, CallInitiator callInitiator, string userVisibleData, string userVisibleDataFormat, byte[] userNonVisibleData)
Parameters
Type | Name | Description |
---|---|---|
System.String | personalIdentityNumber | The personal number of the user. String. 12 digits. |
CallInitiator | callInitiator | Indicate if the user or the RP initiated the phone call. user: user called the RP. RP: RP called the user. |
System.String | userVisibleData | The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. |
System.String | userVisibleDataFormat | If present, and set to "simpleMarkdownV1", this parameter indicates that userVisibleData holds formatting characters which, if used correctly, will make the text displayed with the user nicer to look at. For further information of formatting options, please study the document Guidelines for Formatted Text. |
System.Byte[] | userNonVisibleData | Data not displayed to the user. |
Properties
| Improve this Doc View SourceCallInitiator
Indicate if the user or the RP initiated the phone call. user: user called the RP. RP: RP called the user.
Declaration
public string CallInitiator { get; }
Property Value
Type | Description |
---|---|
System.String |
PersonalIdentityNumber
The personal number of the user. String. 12 digits.
Declaration
public string PersonalIdentityNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
Requirement
Requirements on how the phone auth or phone sign order must be performed.
Declaration
public PhoneRequirement Requirement { get; }
Property Value
Type | Description |
---|---|
PhoneRequirement |
UserNonVisibleData
Data not displayed to the user.
Declaration
public string? UserNonVisibleData { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
UserVisibleData
The text can be formatted using CR, LF and CRLF for new lines. The text must be encoded as UTF-8 and then base 64 encoded. 1—1 500 characters after base 64encoding.
Scenario sign: The text to be displayed and signed. String. The text can be formatted using CR, LF and CRLF for new lines.
Scenario auth: A text that is displayed to the user during authentication with BankID, with the purpose of providing context for the authentication and to enable users to notice if there is something wrong about the identification and avoid attempted frauds.
Declaration
public string? UserVisibleData { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
UserVisibleDataFormat
If present, and set to "simpleMarkdownV1", this parameter indicates that userVisibleData holds formatting characters which, if used correctly, will make the text displayed with the user nicer to look at. For further information of formatting options, please study the document Guidelines for Formatted Text.
Declaration
public string? UserVisibleDataFormat { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |