Skip to content

Commit

Permalink
Fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
efetoboreakpoguma committed Jan 21, 2025
1 parent 8af5863 commit 1d0d760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jsign-crypto/src/main/java/net/jsign/KeyStoreType.java
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ Provider getProvider(KeyStoreBuilder params) {
@Override
void validate(KeyStoreBuilder params) {
if (params.keystore() == null) {
throw new IllegalArgumentException("keystore " + params.parameterName() + " must specify the Goole Cloud keyring");
throw new IllegalArgumentException("keystore " + params.parameterName() + " must specify the Google Cloud keyring");
}
if (!params.keystore().matches("projects/[^/]+/locations/[^/]+/keyRings/[^/]+")) {
throw new IllegalArgumentException("keystore " + params.parameterName() + " must specify the path of the keyring (projects/{projectName}/locations/{location}/keyRings/{keyringName})");
}
if (params.storepass() == null) {
throw new IllegalArgumentException("storepass " + params.parameterName() + " must specify the Goole Cloud API access token");
throw new IllegalArgumentException("storepass " + params.parameterName() + " must specify the Google Cloud API access token");
}
if (params.certfile() == null) {
throw new IllegalArgumentException("certfile " + params.parameterName() + " must be set");
Expand Down
4 changes: 2 additions & 2 deletions jsign-crypto/src/test/java/net/jsign/KeyStoreBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void testBuildGoogleCloud() throws Exception {
KeyStoreBuilder builder = new KeyStoreBuilder().storetype(GOOGLECLOUD);

Exception e = assertThrows(IllegalArgumentException.class, builder::build);
assertEquals("message", "keystore parameter must specify the Goole Cloud keyring", e.getMessage());
assertEquals("message", "keystore parameter must specify the Google Cloud keyring", e.getMessage());

builder.keystore("projects/first-rain-123/locations/global/keyRings/mykeyring/cryptoKeys/jsign");

Expand All @@ -200,7 +200,7 @@ public void testBuildGoogleCloud() throws Exception {
builder.keystore("projects/first-rain-123/locations/global/keyRings/mykeyring");

e = assertThrows(IllegalArgumentException.class, builder::build);
assertEquals("message", "storepass parameter must specify the Goole Cloud API access token", e.getMessage());
assertEquals("message", "storepass parameter must specify the Google Cloud API access token", e.getMessage());

builder.storepass("0123456789ABCDEF");

Expand Down

0 comments on commit 1d0d760

Please sign in to comment.