NAME

XML::LibXMLSec::KeysData - key data

DESCRIPTION

Currently this module only holds some constants.

CONSTANTS

Key usage

These are bits masks that determines possible keys data usage.

USAGE_UNKNOWN

The key data usage is unknown.

USAGE_KEY_INFO_NODE_READ

The key data could be read from a <dsig:KeyInfo/> child.

USAGE_KEY_INFO_NODE_WRITE

The key data could be written to a <dsig:KeyInfo /> child.

USAGE_KEY_VALUE_NODE_READ

The key data could be read from a <dsig:KeyValue /> child.

USAGE_KEY_VALUE_NODE_WRITE

The key data could be written to a <dsig:KeyValue /> child.

USAGE_RETRIEVAL_METHOD_NODE_XML

The key data could be retrieved using <dsig:RetrievalMethod /> node in XML format.

USAGE_RETRIEVAL_METHOD_NODE_BIN

The key data could be retrieved using <dsig:RetrievalMethod /> node in binary format.

USAGE_ANY

Any key data usage.

Key type

The key data type (public/private, session/permanet, etc.).

TYPE_UNKNOWN

The key data type is unknown (same as "TYPE_NONE").

TYPE_NONE

The key data type is unknown (same as "TYPE_UNKNOWN").

TYPE_PUBLIC

The key data contain a public key.

TYPE_PRIVATE

The key data contain a private key.

TYPE_SYMMETRIC

The key data contain a symmetric key.

TYPE_SESSION

The key data contain session key (one time key, not stored in keys manager).

TYPE_PERMANENT

The key data contain permanent key (stored in keys manager).

TYPE_TRUSTED

The key data is trusted.

TYPE_ANY

Any key data.

Key format

The key data format (binary, der, pem, etc.).

FORMAT_UNKNOWN

The key data format is unknown.

FORMAT_BINARY

The key data format is binary.

FORMAT_PEM

The key data format is PEM (cert or public/private key).

FORMAT_DER

The key data format is DER (cert or public/private key).

FORMAT_PKCS8_PEM

The key is a PKCS#8 PEM private key.

FORMAT_PKCS8_DER

The key is a PKCS#8 DER private key.

FORMAT_PKCS12

The key is in PKCS#12 format (bag of keys and certs)

FORMAT_CERT_PEM

The key is a certificate, in PEM format.

FORMAT_CERT_DER

The key is a certificate, in DER format.

SEE ALSO

https://www.aleksey.com/xmlsec/api/xmlsec-keysdata.html the original documentation.