Search in sources :

Example 1 with KeyInformationExtractor

use of won.cryptography.key.KeyInformationExtractor in project webofneeds by researchstudio-sat.

the class WonKeysReaderWriter method writeToModel.

public static void writeToModel(Model model, Resource keySubject, PublicKey publicKey) throws NotSupportedException, KeyNotSupportedException {
    Objects.requireNonNull(keySubject);
    Objects.requireNonNull(publicKey);
    Objects.requireNonNull(model);
    KeyInformationExtractor info = new KeyInformationExtractorBouncyCastle();
    writeToModel(model, keySubject, new WonEccPublicKey(info.getCurveID(publicKey), info.getAlgorithm(publicKey), info.getQX(publicKey), info.getQY(publicKey)));
}
Also used : KeyInformationExtractorBouncyCastle(won.cryptography.key.KeyInformationExtractorBouncyCastle) KeyInformationExtractor(won.cryptography.key.KeyInformationExtractor)

Aggregations

KeyInformationExtractor (won.cryptography.key.KeyInformationExtractor)1 KeyInformationExtractorBouncyCastle (won.cryptography.key.KeyInformationExtractorBouncyCastle)1