Interface AuthDomainDigestAuthCallback
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface AuthDomainDigestAuthCallback
extends FunctionPointer
Functional interface declaration of the AuthDomainDigestAuthCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(AuthDomainDigest domain, ServerMessage msg, String username) Callback used byAuthDomainDigestfor authentication purposes.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment domain, MemorySegment msg, MemorySegment username, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
Callback used by
AuthDomainDigestfor authentication purposes.The application should look up
usernamein its password database, and return the corresponding encoded password (seeAuthDomainDigest.encodePassword(String, String, String).- Parameters:
domain- the domainmsg- the message being authenticatedusername- the username provided by the client- Returns:
- the encoded password, or
nullifusernameis not a valid user.domainwill free the password when it is done with it.
-
upcall
default MemorySegment upcall(MemorySegment domain, MemorySegment msg, MemorySegment username, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(AuthDomainDigest, ServerMessage, String)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-