mirror of https://github.com/shred/acme4j
Fail if no keypair is set
parent
535543e7b1
commit
1267684614
|
@ -33,6 +33,10 @@ public class Account {
|
|||
* {@link KeyPair} that identifies the account.
|
||||
*/
|
||||
public Account(KeyPair keyPair) {
|
||||
if (keyPair == null) {
|
||||
throw new NullPointerException("keypair must be set");
|
||||
}
|
||||
|
||||
this.keyPair = keyPair;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue