- Source:
Methods
addCertificate(certificate)
Set the certificate of the host server
Parameters:
Name | Type | Description |
---|---|---|
certificate |
string | The pinned certificate in Base64 string format |
- Source:
addPublicKeyHash(publicKeyHash)
Set the public keys of the host server
Parameters:
Name | Type | Description |
---|---|---|
publicKeyHash |
string | String value in Base64 of the pinned public key hash. |
- Source:
getSecurityConfiguration() → {Object}
Gets the final MASSecurityConfiguration as a JSON object
- Source:
Returns:
MASSecurityConfiguration object
Example output --
{
host:gw.ca.com:443,
isPublic:false,
certificates:[Jcnjd...],
trustPublicPKI:true
}
Example output --
{
host:gw.ca.com:443,
isPublic:false,
certificates:[Jcnjd...],
trustPublicPKI:true
}
- Type
- Object
setHost(host)
Set the host of the server that you want to connect
Parameters:
Name | Type | Description |
---|---|---|
host |
string | Uri object containing the hostname, and port number. |
- Source:
setPublic(isPublic)
Sets the public/private scope of the server.
Parameters:
Name | Type | Description |
---|---|---|
isPublic |
boolean | Boolean value that specifes whether the server is public or not. |
- Source:
setTrustPublicPKI(trustPublicPKI)
Determines whether to trust Public PKI for the host server.
Parameters:
Name | Type | Description |
---|---|---|
trustPublicPKI |
boolean | Boolean value to trust, or not to trust the public PKI. If false, provide either the certificate, or the publicKeyHash. |
- Source: