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 the type T, if any.


var principal: Principal?

Retrieves an authenticated principal, or returns null if a user isn't authenticated.