1 package com.atlassian.asap.core.keys.privatekey;
2
3 import com.atlassian.asap.api.exception.CannotRetrieveKeyException;
4 import com.atlassian.asap.core.keys.KeyProvider;
5 import com.atlassian.asap.core.validator.ValidatedKeyId;
6
7 import java.security.PrivateKey;
8
9
10
11
12 public class NullKeyProvider implements KeyProvider<PrivateKey> {
13 public static final String URL_SCHEME = "null";
14
15 @Override
16 public PrivateKey getKey(ValidatedKeyId keyId) throws CannotRetrieveKeyException {
17 throw new CannotRetrieveKeyException("Please configure a private key provider");
18 }
19
20 @Override
21 public String toString() {
22 return this.getClass().getSimpleName();
23 }
24 }