Class CreateCallLinkCredentialRequest
-
- All Implemented Interfaces:
public final class CreateCallLinkCredentialRequest extends ByteArray
-
-
Field Summary
Fields Modifier and Type Field Description public final static ByteArray.UncheckedAndUnclonedUNCHECKED_AND_UNCLONED
-
Constructor Summary
Constructors Constructor Description CreateCallLinkCredentialRequest(Array<byte> contents)
-
Method Summary
Modifier and Type Method Description CreateCallLinkCredentialResponseissueCredential(ServiceId.Aci userId, Instant timestamp, GenericServerSecretParams params)Issues a CreateCallLinkCredential. CreateCallLinkCredentialResponseissueCredential(ServiceId.Aci userId, Instant timestamp, GenericServerSecretParams params, SecureRandom secureRandom)Issues a CreateCallLinkCredential, using a dedicated source of randomness. -
-
Constructor Detail
-
CreateCallLinkCredentialRequest
CreateCallLinkCredentialRequest(Array<byte> contents)
-
-
Method Detail
-
issueCredential
CreateCallLinkCredentialResponse issueCredential(ServiceId.Aci userId, Instant timestamp, GenericServerSecretParams params)
Issues a CreateCallLinkCredential.
- Parameters:
userId- The ACI of the user who will be creating the call link.timestamp- Must be a round number of days.params- The params that will be used by the calling server to verify this credential.
-
issueCredential
CreateCallLinkCredentialResponse issueCredential(ServiceId.Aci userId, Instant timestamp, GenericServerSecretParams params, SecureRandom secureRandom)
Issues a CreateCallLinkCredential, using a dedicated source of randomness.
This can be used to make tests deterministic. Prefer issueCredential if the source of randomness doesn't matter.
- Parameters:
userId- The ACI of the user who will be creating the call link.timestamp- Must be a round number of days.params- The params that will be used by the calling server to verify this credential.secureRandom- Used to hide the server's secrets and make the issued credential unique.
-
-
-
-