@ApiStatus.Internal public class InMemoryCredentialsStore extends Object implements CredentialsStore
CredentialsStore| Constructor and Description |
|---|
InMemoryCredentialsStore() |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
add(InetSocketAddress address,
byte[] passphrase)
Adds a valid
Credentials to the registry |
void |
clear()
Clear all registered
Credentials |
boolean |
exists(InetSocketAddress address)
Checks if a
Credentials is registered for the specified address. |
Credentials |
get(InetSocketAddress address)
Gets a
Credentials from the storage. |
void |
remove(InetSocketAddress address)
Clear
Credentials for a specific address |
public Credentials get(InetSocketAddress address)
Credentials from the storage.get in interface CredentialsStoreaddress - The InetSocketAddress to be used for lookupCredentials associated with the InetSocketAddress. null if no Credentials is present.public Credentials add(InetSocketAddress address, byte[] passphrase)
Credentials to the registryadd in interface CredentialsStoreaddress - The InetSocketAddress to registerpassphrase - The byte array containing the passphrase to be used for authenticationCredentials registered for the specified addresspublic void remove(InetSocketAddress address)
Credentials for a specific addressremove in interface CredentialsStoreaddress - The InetSocketAddress to clearpublic void clear()
Credentialsclear in interface CredentialsStorepublic boolean exists(InetSocketAddress address)
Credentials is registered for the specified address. Note: This only checks for the existence of a Credentials not the validity.exists in interface CredentialsStoreaddress - The InetSocketAddress to checktrue if a Credentials is registered for the specified address.Copyright © 2016–2024. All rights reserved.