GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OPENXPKI::CRYPTO::SECRET (3)

.ds Aq ’

Name

OpenXPKI::Crypto::Secret - Base class for secrets (e. g. PINs).

CONTENTS

Description

Base class for secret storage.

Subclasses must implement the methods set_secret(), get_secret() and is_complete().

If the secret is fully known, the subclass must return a true value whenever is_complete() is called.

Once the secret is known the subclass must return the secret whenever get_secret() is called, otherwise an undefined value should be returned.

See OpenXPKI::Crypto::Secret::Plain for a usage example.

    Methods

new

Constructor. Select ’Secret’ implementation by specifying the named parameter ’TYPE’ accordingly. TYPE defaults to ’Plain’. See OpenXPKI::Crypto::Secret::Plain.

is_complete

Returns true once the secret is known. Must be implemented by subclasses.

is_exportable

If this secret value should be exposed outside the crypto manager.

get_secret

Returns the resulting secret or undef if not yet available. Must be implemented by subclasses.

set_secret

Sets (part of) the secret. Must be implemented by subclasses.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 OPENXPKI::CRYPTO::SECRET (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.