forked from vt-middleware/cryptacular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erdem A Memisyazici
committed
Mar 27, 2024
1 parent
e49bc14
commit 38c43b1
Showing
14 changed files
with
1,039 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* See LICENSE for licensing and NOTICE for copyright. */ | ||
package org.cryptacular; | ||
|
||
/** | ||
* Contract interface for converting encoded bytes to an object. | ||
* | ||
* @param <T> Type of object to produce on decode. | ||
* | ||
* @author Middleware Services | ||
*/ | ||
public interface KeyDecoder<T> | ||
{ | ||
|
||
/** | ||
* Produces an object from an encoded representation. | ||
* | ||
* @param encoded data. | ||
* @param args Additional data required to perform decoding. | ||
* | ||
* @return Decoded object. | ||
* | ||
* @throws EncodingException on encoding errors. | ||
*/ | ||
T decode(byte[] encoded, Object... args) throws EncodingException; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* See LICENSE for licensing and NOTICE for copyright. */ | ||
package org.cryptacular.io.pem; | ||
|
||
/** | ||
* Enum to define the RFC governing the PEM format | ||
* | ||
* @author Middleware Services | ||
*/ | ||
public enum PemFormat | ||
{ | ||
/** | ||
* a PEM encoded file as defined by RFC-2440 (OpenPGP). | ||
*/ | ||
RFC2440, | ||
/** | ||
* a PEM encoded file as defined by RFC-7468 (Textual Encodings of PKIX, PKCS, and CMS Structures). | ||
*/ | ||
RFC7468, | ||
/** | ||
* a PEM encoded file as defined by RFC-1421 (Privacy Enhanced Message). | ||
*/ | ||
RFC1421, | ||
/** | ||
* a PEM encoded file as defined by RFC-4716 (SSH). | ||
*/ | ||
RFC4716, | ||
} |
Oops, something went wrong.