BCEdDSAPrivateKey(PrivateKeyInfo keyInfo) throws IOException { this.hasPublicKey = keyInfo.hasPublicKey(); this.attributes = (keyInfo.getAttributes() != null) ? keyInfo.getAttributes().getEncoded() : null; populateFromPrivateKeyInfo(keyInfo); }
BCXDHPrivateKey(PrivateKeyInfo keyInfo) throws IOException { this.hasPublicKey = keyInfo.hasPublicKey(); this.attributes = (keyInfo.getAttributes() != null) ? keyInfo.getAttributes().getEncoded() : null; populateFromPrivateKeyInfo(keyInfo); }