Skip to content

Use javax.security.PrivateKey and PublicKey as argument to the PrivateKey and PublicKey class wrappers #38

@nbaars

Description

@nbaars

At the moment the moment both classes take a byte[] as argument:

 public PublicKey(byte[] keyMaterial, Version version) {
        super(keyMaterial, version);
    }

It is easier from a user perspective to change this to:

 public PublicKey(javax.security.PublicKey, Version version) {
        super(keyMaterial, version);
    }

this way the API is not responsible for translations, we take a valid key which the user needs to obtain from a byte[], PEM encoded string etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions