mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
22 lines
459 B
Java
22 lines
459 B
Java
package org.briarproject.api.crypto;
|
|
|
|
/** A key pair consisting of a {@link PublicKey} and a {@link PrivateKey). */
|
|
public class KeyPair {
|
|
|
|
private final PublicKey publicKey;
|
|
private final PrivateKey privateKey;
|
|
|
|
public KeyPair(PublicKey publicKey, PrivateKey privateKey) {
|
|
this.publicKey = publicKey;
|
|
this.privateKey = privateKey;
|
|
}
|
|
|
|
public PublicKey getPublic() {
|
|
return publicKey;
|
|
}
|
|
|
|
public PrivateKey getPrivate() {
|
|
return privateKey;
|
|
}
|
|
}
|