equal
deleted
inserted
replaced
57 static final SSLPossessionGenerator poExportableGenerator = |
57 static final SSLPossessionGenerator poExportableGenerator = |
58 new DHEPossessionGenerator(true); |
58 new DHEPossessionGenerator(true); |
59 static final SSLKeyAgreementGenerator kaGenerator = |
59 static final SSLKeyAgreementGenerator kaGenerator = |
60 new DHEKAGenerator(); |
60 new DHEKAGenerator(); |
61 |
61 |
62 static final class DHECredentials implements SSLCredentials { |
62 static final class DHECredentials implements SSLKeyAgreementCredentials { |
63 final DHPublicKey popPublicKey; |
63 final DHPublicKey popPublicKey; |
64 final NamedGroup namedGroup; |
64 final NamedGroup namedGroup; |
65 |
65 |
66 DHECredentials(DHPublicKey popPublicKey, NamedGroup namedGroup) { |
66 DHECredentials(DHPublicKey popPublicKey, NamedGroup namedGroup) { |
67 this.popPublicKey = popPublicKey; |
67 this.popPublicKey = popPublicKey; |
68 this.namedGroup = namedGroup; |
68 this.namedGroup = namedGroup; |
|
69 } |
|
70 |
|
71 @Override |
|
72 public PublicKey getPublicKey() { |
|
73 return popPublicKey; |
69 } |
74 } |
70 |
75 |
71 static DHECredentials valueOf(NamedGroup ng, |
76 static DHECredentials valueOf(NamedGroup ng, |
72 byte[] encodedPublic) throws IOException, GeneralSecurityException { |
77 byte[] encodedPublic) throws IOException, GeneralSecurityException { |
73 |
78 |