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)));
}
Aggregations