principal

fun principal(principal: Principal)

Sets an authenticated principal for this context.

This method may be called only once per context


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

Retrieves a principal of type T, if any


var principal: Principal?

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