public class SimpleRsaStore
extends java.lang.Object
implements com.netflix.msl.entityauth.RsaStore
An example RSA key store.
| Constructor and Description |
|---|
SimpleRsaStore(java.lang.String serverId,
java.security.PublicKey publicKey,
java.security.PrivateKey privateKey)
Create a new RSA store that will return the provided public and/or
private keys for the specified server entity identity.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getIdentities() |
java.security.PrivateKey |
getPrivateKey(java.lang.String identity) |
java.security.PublicKey |
getPublicKey(java.lang.String identity) |
public SimpleRsaStore(java.lang.String serverId,
java.security.PublicKey publicKey,
java.security.PrivateKey privateKey)
Create a new RSA store that will return the provided public and/or private keys for the specified server entity identity. A public key must be provided to authenticate remote entities. A private key must be provided to authenticate local entities.
serverId - server entity identity.publicKey - server RSA public key. May be null.privateKey - server RSA private key. May be null.public java.util.Set<java.lang.String> getIdentities()
getIdentities in interface com.netflix.msl.entityauth.RsaStorepublic java.security.PublicKey getPublicKey(java.lang.String identity)
getPublicKey in interface com.netflix.msl.entityauth.RsaStorepublic java.security.PrivateKey getPrivateKey(java.lang.String identity)
getPrivateKey in interface com.netflix.msl.entityauth.RsaStore