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
OpenXPKI::Server::API2::Types(3) User Contributed Perl Documentation OpenXPKI::Server::API2::Types(3)

OpenXPKI::Server::API2::Types - Collection of Moose types used for API command parameters

Text with space and punctuation characters. Allowed: alphanumeric, underscore ("_"), other connector punctuation chars, Unicode marks, dash ("-"), colon (":"), space

Array of AlphaPunct strings.

A postive integer value (excluding zero)

A string containing a number in hexadecimal notation

Either an "Int" or a "Hex" number

A string used as identifier, allows word + underscore

The empty string

A string containing only characters allowed in Base64 and Base64 filename/URL safe encoding.

A PEM encoded data (i.e. Base64 encoded string separated by newlines).

A PEM encoded certificate

A PEM encoded certificate chain

A PEM encoded PKCS7 container

A PEM encoded private key container

A PEM encoded private key container

An ArrayRef of "PEMCertChain" that will also accept a scalar of type "PEMCertChain" (which is automatically wrapped into an ArrayRef).

Please also see "COERCION".

An ArrayRef of Str that will also accept a scalar Str (which is automatically wrapped into an ArrayRef).

    # this is the same:
    CTX('api2')->show(animal => "all");
    CTX('api2')->show(animal => [ "all" ]);

Please also see "COERCION".

An ArrayRef of Str that will also accept a scalar Str with a comma separated list of string (which is converted into an ArrayRef).

    # this is the same:
    CTX('api2')->show(animal => "dog,cat, other");
    CTX('api2')->show(animal => [ "dog", "cat", "other"]);

Please also see "COERCION".

Enumeration: certsign, crlsign, datasafe, cmcra or scep.

Enumeration of certificate stati: ISSUED, REVOKED, CRL_ISSUANCE_PENDING or VALID, EXPIRED.

Please note that in queries specifying a validity date the returned status can also be VALID.

For some of the types you must also specify "coerce => 1" for the automatic type conversions to work, e.g.:

    command "doit" => {
        types => { isa => 'ArrayRefOrCommaList', coerce => 1, },
    } => sub {
        my ($self, $params) = @_;
        print join(", ", @{ $params->types }), "\n";
    };

no Moose::Util::TypeConstraints;

2022-05-14 perl v5.32.1

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

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