public interface CredentialsAuthority
CredentialsAuthority
interface is implemented by applications
in order to allow the stack to verify the integrity of incoming messages
containing the MessageIntegrityAttribute.Modifier and Type | Method and Description |
---|---|
boolean |
checkLocalUserName(String username)
Verifies whether username is currently known to this authority
and returns true if so.
|
byte[] |
getLocalKey(String username)
Returns the key (password) that corresponds to the specified local
username or user frag, an empty array if there was no password for that
username or null if the username is not a local user name
recognized by this CredentialsAuthority.
|
byte[] |
getRemoteKey(String username,
String media)
Returns the key (password) that corresponds to the specified remote
username or user frag, an empty array if there was no password for that
username or null if the username is not a remote user name
recognized by this CredentialsAuthority.
|
byte[] getLocalKey(String username)
username
- the local user name or user frag whose credentials we'd
like to obtain.byte[] getRemoteKey(String username, String media)
username
- the remote user name or user frag whose credentials we'd
like to obtain.media
- the media name that we want to get remote key.boolean checkLocalUserName(String username)
username
- the user name whose validity we'd like to check.Copyright © 2018. All rights reserved.