Commit Graph

335 Commits

Author SHA1 Message Date
Peter Hamilton 81889cd9d8 Adding a Pie ObjectFactory
This change adds an ObjectFactory for the Pie object hierarchy. It
provides easy translation to and from Pie objects to the original core
object hierarchy. The factory is only used by the new Pie client and
should never be used outside of this context. A unit test suite for the
factory is included.
2015-07-22 10:04:49 -04:00
Peter Hamilton 7efcc30430 Merge pull request #55 from OpenKMIP/feat/updating-pie-objects
Updating Pie API key objects
2015-07-22 10:03:42 -04:00
sedukull 4a0b2c4c57 Shutdown and close the socket properly.
Calling close in destructor, helps in case default close() is not called
by consumers.
2015-07-22 23:33:40 +10:00
Peter Hamilton bc703f0757 Updating Pie API key objects
This change makes some minor updates to the Pie key object hierarchy. It
fixes the key subclasses to inherit from Key directly. It adds in
support for the key format type attribute, which is required for
low-level key encoding. It also improves repr and str functionality by
using binascii.hexlify to represent the key values. The corresponding
test suites are updated accordingly to reflect these changes.
2015-07-21 16:03:53 -04:00
Peter Hamilton dfb6594a52 Merge pull request #52 from OpenKMIP/feat/add-client-timeout
Adding customizable timeout support to the KMIP client
2015-07-21 10:56:33 -04:00
Peter Hamilton d6a4da6050 Adding customizable timeout support to the KMIP client
This change adds support for a customizable timeout option for the KMIP
client. The client will stop attempting connections or operations once
the timeout is exceeded instead of waiting for the default system
timeout. The default timeouts is 30 seconds.
2015-07-21 08:54:44 -04:00
Peter Hamilton 57710db3dc Merge pull request #49 from OpenKMIP/feat/add-pie-private-key
Adding PrivateKey to the Pie object hierarchy
2015-07-06 08:14:01 -04:00
Peter Hamilton 93f6c5411f Adding PrivateKey to the Pie object hierarchy
This change adds PrivateKey to the Pie object hierarchy along with a
test suite.
2015-07-02 15:32:18 -04:00
Peter Hamilton 7af06d380d Merge pull request #48 from OpenKMIP/feat/add-pie-public-key
Adding PublicKey to the Pie object hierarchy
2015-07-02 11:17:30 -04:00
Peter Hamilton 93693c8d4d Adding PublicKey to the Pie object hierarchy
This change adds PublicKey to the Pie object hierarchy along with a test
suite.
2015-07-02 10:51:01 -04:00
Peter Hamilton a1005c43bb Merge pull request #44 from OpenKMIP/feat/add-pie-symmetric-key
Adding SymmetricKey to the Pie object hierarchy
2015-07-02 10:23:57 -04:00
Peter Hamilton 4ff4370c93 Merge pull request #46 from OpenKMIP/feat/add-revoke-demo
Adding a demo for the Revoke operation
2015-07-01 11:03:55 -04:00
Peter Hamilton d46c33ccb2 Merge pull request #47 from callidus/add-dates
Adding various date attribute values
2015-07-01 10:57:57 -04:00
Tim Kelsey 6bd311701c Adding various date attribute values 2015-07-01 15:48:11 +01:00
Peter Hamilton 7a9f190ec4 Adding SymmetricKey to the Pie object hierarchy
This change adds SymmetricKey to the Pie object hierarchy along with a
test suite and updates to the other classes and test suites composing
the Pie interface.
2015-07-01 08:38:37 -04:00
Peter Hamilton f22b3f9c60 Merge pull request #43 from callidus/adding-crypto-params
Adding CryptographicParameters construction to attribute values
2015-07-01 07:59:25 -04:00
Peter Hamilton d2dbd8e8c4 Adding a demo for the Revoke operation
This change adds a unit demo for the Revoke operation. The operation
accepts a UID of the KMIP managed object that needs to be revoked, in
addition to a revocation code and message explaining why revocation
needs to occur.
2015-06-30 11:00:04 -04:00
Peter Hamilton 94f8134fcd Merge pull request #41 from callidus/adding-revoke
Adding revoke operation
2015-06-30 10:34:26 -04:00
Tim Kelsey 63e55e3a06 Adding CryptographicParameters construction to attribute values 2015-06-30 11:23:35 +01:00
Peter Hamilton 09acd905d3 Merge pull request #42 from OpenKMIP/feat/add-activate-demo
Adding a demo for the Activate operation
2015-06-29 10:30:10 -04:00
Tim Kelsey 30ff7e78bf Adding revoke operation 2015-06-26 14:54:23 +01:00
Peter Hamilton ef628b3f0e Adding a demo for the Activate operation
This change adds a unit demo for the Activate operation. The operation
accepts the UID of a KMIP managed object that needs to be activated for
future use.
2015-06-26 09:52:28 -04:00
Peter Hamilton a7e2084385 Merge pull request #33 from callidus/add-activate
Adding the "activate" opperation
2015-06-26 09:39:45 -04:00
Tim Kelsey b1ac997d38 Adding the "activate" opperation 2015-06-26 12:08:24 +01:00
Peter Hamilton b8fe858782 Merge pull request #40 from OpenKMIP/bug/fix-file-handle-for-versions
Fixing bug with dangling file handle when setting __version__
2015-06-25 15:07:06 -04:00
Peter Hamilton 95b729d6f7 Merge pull request #39 from cactorium/fix_credentials
Fix a few bugs in Credential object
2015-06-25 15:00:59 -04:00
Peter Hamilton e371273457 Fixing bug with dangling file handle when setting __version__
This change fixes a bug whereby a file handle was left unclosed after
being used to dynamically set __version__.
2015-06-25 14:27:31 -04:00
Kelvin Ly 3a2ceab68f Fix a few bugs in Credential object 2015-06-25 12:22:36 -04:00
Peter Hamilton 093ef072c1 Merge pull request #38 from OpenKMIP/ver/prep-release-0-3-3
PyKMIP - Release 0.3.3
2015-06-25 09:12:20 -04:00
Peter Hamilton 2ec52ef34d PyKMIP - Release 0.3.3
This update includes several new features and bug fixes:
* Add the core ManagedObject class hierarchy for the new Pie API
* Add updated Boolean primitive implementation and test suite
* Add integration tests for symmetric key creation and registration
* Update demo and client logging to log at the INFO level by default
* Update README with improved testing instructions
* Fix bug causing enumerations to be encoded as signed integers
* Fix bug with mismatched EncodingOption tag
* Fix bug with relative path use for version number handling
* Fix bug with Integer primitive breaking on valid long integer values
2015-06-25 08:58:47 -04:00
Peter Hamilton 8516c52820 Merge pull request #37 from OpenKMIP/bug/fix-integer-accepting-longs
Fixing bug with Integer accepting long values
2015-06-25 07:59:04 -04:00
Peter Hamilton 0069f0d9fb Merge pull request #36 from hadesto/dev/hadi/integration-tests/release/symmetric-keys
Added integration tests for testing symmetric keys
2015-06-25 07:55:52 -04:00
Hadi Esiely d1e6ff49c8 Added integration tests for testing symmetric keys 2015-06-24 15:56:47 -04:00
Peter Hamilton 87f05f90bf Fixing bug with Integer accepting long values
This change fixes a bug with the Integer primitive that caused it to
break when accepting long integer values. As long as the long integer
value can be represented by a signed 32-bit integer, it is considered
valid. Test cases have been added to check for this condition and the
validation routine for Integer has been updated to raise appropriate
errors.
2015-06-24 13:42:04 -04:00
Peter Hamilton 5025925388 Merge pull request #34 from callidus/bug-fixes
A few bug fixes in objects
2015-06-24 12:52:11 -04:00
Peter Hamilton 083f61ab28 Merge pull request #35 from OpenKMIP/bug/fix-version-handling
Fixing relative path bug when looking up library version
2015-06-24 12:40:34 -04:00
Peter Hamilton b38b58c2f4 Fixing relative path bug when looking up library version
This change fixes the use of relative paths used to fetch the PyKMIP
library version number in kmip/__init__.py and setup.py. The absolute
path of the file is now dynamically generated and used instead. Tests
are included to verify that the __version__ attribute is set properly.
2015-06-24 12:31:53 -04:00
Tim Kelsey dae65b46c4 A few bug fixes in objects 2015-06-24 15:34:53 +01:00
Peter Hamilton ef58a8f90b Merge pull request #28 from OpenKMIP/feat/finish-boolean-primitive
Finishing Boolean primitive implementation
2015-06-23 14:13:26 -04:00
Peter Hamilton 16ad8447ce Merge pull request #27 from OpenKMIP/feat/add-pie-crypto-base-objects
Adding additional cryptographic base classes
2015-06-23 13:27:14 -04:00
Peter Hamilton a90e0f0b98 Adding additional cryptographic base classes
This change adds two additional abstract base classes for the Pie
ManagedObject object hierarchy: CryptographicObject and Key. Test suites
are provided for each base class, using a dummy subclass of each for
testing. The object test suite package structure is also modified to
collect all ManagedObject subclass tests in one package.
2015-06-23 13:25:31 -04:00
Peter Hamilton ac6a9edec7 Merge pull request #26 from OpenKMIP/bug/add-test-for-unsigned-enum
Adding test case for bug with unsigned Enumeration encoding
2015-06-19 13:54:48 -04:00
Peter Hamilton 272f9ffcbc Merge pull request #21 from OpenKMIP/feat/add-pie-managed-object
Adding the ManagedObject base class
2015-06-18 08:14:21 -04:00
Peter Hamilton 3ecb63aaf5 Finishing Boolean primitive implementation
This change finishes the Boolean primitive implementation, including a
complete test suite for the Boolean class.
2015-06-17 14:10:31 -04:00
Peter Hamilton 25c4aa90a5 Adding the ManagedObject base class
This change adds ManagedObject, the abstract base class of the
simplified KMIP object hierarchy. It defines a set of attributes common
to all KMIP objects and registers placeholder methods to be implemented
by all subclasses. A basic test suite is included, using a dummy
ManagedObject subclass for testing.
2015-06-17 10:45:47 -04:00
Peter Hamilton 64d30343a1 Adding test case for bug with unsigned Enumeration encoding
This change adds a test case that verifies a fix for a bug with how
Enumerations were encoded as signed instead of unsigned integers. The
validation check for Enumerations has also been updated to be more
concise.
2015-06-16 14:33:56 -04:00
Peter Hamilton 4d92d1fa95 Merge pull request #24 from rellerreller/dev/unsigned-integer
Enumerations are Unsigned Integers
2015-06-16 13:56:51 -04:00
Peter Hamilton e5043ec193 Merge pull request #15 from OpenKMIP/feat/update-client-demo-logging
Updating client and demo logging
2015-06-16 07:48:34 -04:00
Peter Hamilton 3ec0e833eb Updating client and demo logging
This change updates various logging statements for the KMIP client and
demo suites, ensuring that the default logging level for the library is
at the INFO level and that all demo logging is at the INFO level.
2015-06-16 07:46:25 -04:00
Nate 7106e5cf18 Merge pull request #23 from OpenKMIP/feat/improve-version-handling
Adding version module to improve version handling
2015-06-15 12:34:30 -04:00