keycloak-service
公開メンバ関数 | 変数 | 全メンバ一覧
org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest クラス
org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest 連携図
Collaboration graph

公開メンバ関数

void shouldBlah () throws Exception
 
void shoulProduceExpectedKeyFormat ()
 

変数

String keyIdentifierString
 
PublicKey publicKey
 

詳解

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
27  {
28  final KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
29  keyGen.initialize(2048, new SecureRandom());
30 
31  final KeyPair keypair = keyGen.generateKeyPair();
32  publicKey = keypair.getPublic();
33  final DockerKeyIdentifier identifier = new DockerKeyIdentifier(publicKey);
34  keyIdentifierString = identifier.toString();
35  }
String keyIdentifierString
Definition: DockerKeyIdentifierTest.java:23
PublicKey publicKey
Definition: DockerKeyIdentifierTest.java:24

◆ shoulProduceExpectedKeyFormat()

void org.keycloak.procotol.docker.installation.DockerKeyIdentifierTest.shoulProduceExpectedKeyFormat ( )
inline
38  {
39  assertThat("Every 4 chars are not delimted by colon", keyIdentifierString.matches("([\\w]{4}:){11}[\\w]{4}"), equalTo(true));
40  }
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

このクラス詳解は次のファイルから抽出されました: