Docker gets really unhappy if the key identifier is not in the format documented here:
- 参照
- https://github.com/docker/libtrust/blob/master/key.go#L24
◆ shouldBlah()
void org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest.shouldBlah |
( |
| ) |
throws Exception |
|
inline |
28 final KeyPairGenerator keyGen = KeyPairGenerator.getInstance(
"RSA");
29 keyGen.initialize(2048,
new SecureRandom());
31 final KeyPair keypair = keyGen.generateKeyPair();
33 final DockerKeyIdentifier identifier =
new DockerKeyIdentifier(
publicKey);
String keyIdentifierString
Definition: DockerKeyIdentifierTest.java:23
PublicKey publicKey
Definition: DockerKeyIdentifierTest.java:24
◆ shoulProduceExpectedKeyFormat()
void org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest.shoulProduceExpectedKeyFormat |
( |
| ) |
|
|
inline |
39 assertThat(
"Every 4 chars are not delimted by colon",
keyIdentifierString.matches(
"([\\w]{4}:){11}[\\w]{4}"), equalTo(
true));
String keyIdentifierString
Definition: DockerKeyIdentifierTest.java:23
◆ keyIdentifierString
String org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest.keyIdentifierString |
|
package |
◆ publicKey
PublicKey org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest.publicKey |
|
package |
このクラス詳解は次のファイルから抽出されました: