Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Crypto::ObjeUser)Contributed Perl DocumenOpenXPKI::Crypto::Object(3)

Name
       OpenXPKI::Crypto::Object

Description
       This class is a basic implementation for	all cryptographic objects
       which are supported by OpenXPKI.	It includes several basic function
       which are common	for all	crypto objects.	The most common	functions base
       on the OpenXPKI::Crypto::Header class which is used by OpenXPKI to
       store non-standard and dynamic information of objects.

Functions
   get_header
       returns the plain header	of the object.

   get_body
       returns the plain (cryptographic) body of the object.

   get_raw
       returns the complete plain object.

   get_parsed
       expects an array	which is a path	to parsed value. Example:

       $obj->get_parsed	("HEADER", "SERIAL")

   get_parsed_ref
       returns the parsed hash reference. Be warned - this function should
       only be used to serialize and transport the hash. You should never
       manipulate the data inside of the hash. Example:

       $obj->get_parsed_ref ()

   get_serial
       returns the serial which	is stored in the cryptographic body of the
       object. Some objects like CSRs store the	SERIAL in the HEADER.  Such
       types of	objects	must overwrite this function.

   set_header_attribute
       set an attribute	in the header.

   get_subject_alt_names
       returns the subject alternative names, by default as array of arrays,
       i.e.
	[
	   [ 'DNS', 'www.example.com' ],
	   [ 'DNS', 'www.example.org' ], ]

       This works only for certificates	or certificate signing requests.

       If you pass { FORMAT => HASH } as parameter, you	will get the sans as
       hash:

	  {
	      DNS => [ 'www.example.com', 'www.example.org' ],
	      IP  => [ '1.2.3.4' ]
	  }

perl v5.24.1			  2017-07-03	   OpenXPKI::Crypto::Object(3)

Name | Description | Functions

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Crypto::Object&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help