![]() |
![]()
| ![]() |
![]()
NAMEOpenXPKI::Server::API2::SecretRole - Base role for all types of 'secrets' ATTRIBUTESexportableBool value indicating whether this secret value should be exposed outside the crypto manager. Default: 1 REQUIRESThis role requires the consuming class to implement the following methods: set_secretMust sets (part of) the secret. The arguments are dependent on the type of secret. get_secretMust return the secret if "is_complete() == 1" or "undef" otherwise. clear_secretMust delete all secret data stored in the object. required_part_countMust return the number of required parts to complete this secret. inserted_part_countMust return the number of parts that are already inserted / set. _get_partsMust return an ArrayRef with the current secret data of the object. _set_partsMust set the secret data of the object to the given ArrayRef. METHODSis_exportableReturns 1 if this secret value should be exposed outside the crypto manager, 0 otherwise. is_completeReturns 1 if the secret is fully completed / known / set. freezeReturns the serialized data attributes of this object or "undef" if no secret data has been set yet. thawDecodes the given serialized data and sets the data attributes of this object accordingly.
|