Class NuxeoLoginContext

java.lang.Object
javax.security.auth.login.LoginContext
org.nuxeo.runtime.api.login.NuxeoLoginContext
All Implemented Interfaces:
AutoCloseable

public class NuxeoLoginContext extends LoginContext implements AutoCloseable
An implementation of LoginContext just holding a principal.

Construction is done through the static create(java.security.Principal) method, which takes a Principal. The caller must push the principal on the Nuxeo principal stack using login(), and finally do logout() or close() to remove it.

This is used for compatibility with previous code that expected to receive a LoginContext and then call logout() on it.

Since:
11.1