principal

var principal: Principal?

Retrieves authenticated principal, or returns null if no user was authenticated

Getter

Retrieves authenticated principal, or returns null if no user was authenticated

Setter

Retrieves authenticated principal, or returns null if no user was authenticated

fun principal(principal: Principal): Unit

Sets an authenticated principal for this context.

This method may be called only once per context

inline fun <reified T : Principal> principal(): T?

Retrieves a principal of type T, if any