Package org.webpki.json
Class JSONCryptoHelper
java.lang.Object
org.webpki.json.JSONCryptoHelper
Common crypto support for JSF and JEF.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor building "extensions" decodersstatic classHolds list of supported "extensions" decoders.static enumKeyID parameter to Optionsstatic classCommon JEF/JSF decoding options.static enumPublic key parameter to Options -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeydecodePrivateKey(JSONObjectReader rd, PublicKey publicKey) static PublicKeydecodePublicKey(JSONObjectReader rd, AlgorithmPreferences algorithmPreferences)
-
Field Details
-
ALGORITHM_JSON
- See Also:
-
CERTIFICATE_PATH_JSON
- See Also:
-
CHAIN_JSON
- See Also:
-
CIPHER_TEXT_JSON
- See Also:
-
CRV_JSON
- See Also:
-
E_JSON
- See Also:
-
ENCRYPTED_KEY_JSON
- See Also:
-
EPHEMERAL_KEY_JSON
- See Also:
-
EXCLUDES_JSON
- See Also:
-
EXTENSIONS_JSON
- See Also:
-
IV_JSON
- See Also:
-
KEY_ENCRYPTION_JSON
- See Also:
-
KEY_ID_JSON
- See Also:
-
KTY_JSON
- See Also:
-
N_JSON
- See Also:
-
PUBLIC_KEY_JSON
- See Also:
-
RECIPIENTS_JSON
- See Also:
-
SIGNERS_JSON
- See Also:
-
TAG_JSON
- See Also:
-
VALUE_JSON
- See Also:
-
X_JSON
- See Also:
-
Y_JSON
- See Also:
-
-
Method Details
-
decodePublicKey
public static PublicKey decodePublicKey(JSONObjectReader rd, AlgorithmPreferences algorithmPreferences) -
decodePrivateKey
-