|
NAMEOpenXPKI::Server::API2::Types - Collection of Moose types used for API command parametersTYPESAlphaPunctText with space and punctuation characters. Allowed: alphanumeric, underscore ("_"), other connector punctuation chars, Unicode marks, dash ("-"), colon (":"), spaceArrayOrAlphaPunctArray of AlphaPunct strings.PosIntA postive integer value (excluding zero)HexA string containing a number in hexadecimal notationIntOrHexEither an "Int" or a "Hex" numberIdentA string used as identifier, allows word + underscoreEmptyThe empty stringBase64A string containing only characters allowed in Base64 and Base64 filename/URL safe encoding.PEMA PEM encoded data (i.e. Base64 encoded string separated by newlines).PEMCertA PEM encoded certificatePEMCertChainA PEM encoded certificate chainPEMPKCS7A PEM encoded PKCS7 containerPEMPKeyA PEM encoded private key containerPEMPubKeyA PEM encoded private key containerArrayRefOrPEMCertChainAn ArrayRef of "PEMCertChain" that will also accept a scalar of type "PEMCertChain" (which is automatically wrapped into an ArrayRef).Please also see "COERCION". ArrayRefOrStrAn 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". ArrayRefOrCommaListAn 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". TenantTokenTypeEnumeration: certsign, crlsign, datasafe, cmcra or scep.CertStatusEnumeration 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. COERCIONFor 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;
Visit the GSP FreeBSD Man Page Interface. |