public interface Caller
InternalRepository
.
Mirrors part of net.cnri.dobj.DOOperationContext.
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateCaller()
Returns
true if the caller is authenticated. |
boolean |
authenticateCredential(java.lang.String credentialId)
Returns
true if the caller's credential is authenticated (e.g. |
java.lang.String |
getCallerId()
Returns the id (handle) of the caller.
|
java.net.InetAddress |
getClientAddress()
Returns the internet address of the client.
|
java.lang.Object |
getConnectionMapping(java.lang.Object mappingKey)
Retrieve arbitrary information stored for the caller across multiple operations.
|
java.util.List<java.lang.String> |
getCredentialIds()
Returns a list of ids (such as groups) which the caller claims as credentials.
|
void |
setConnectionMapping(java.lang.Object mappingKey,
java.lang.Object mappingData)
Store arbitrary information for the caller across multiple operations.
|
java.net.InetAddress getClientAddress()
java.lang.String getCallerId()
boolean authenticateCaller()
true
if the caller is authenticated. This method can either perform the authentication, or can always return true
if the authentication is guaranteed to be performed elsewhere.java.util.List<java.lang.String> getCredentialIds()
boolean authenticateCredential(java.lang.String credentialId)
true
if the caller's credential is authenticated (e.g. a group membership is confirmed).java.lang.Object getConnectionMapping(java.lang.Object mappingKey)
void setConnectionMapping(java.lang.Object mappingKey, java.lang.Object mappingData)