Package org.projectnessie.services.authz
Class ServerAccessContext
- java.lang.Object
-
- org.projectnessie.services.authz.ServerAccessContext
-
- All Implemented Interfaces:
AccessContext
@Immutable public abstract class ServerAccessContext extends java.lang.Object implements AccessContext
-
-
Constructor Summary
Constructors Constructor Description ServerAccessContext()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ServerAccessContextof(java.lang.String operationId, java.security.Principal principal)abstract java.lang.StringoperationId()Provide a unique id for the operation being validated (for correlation purposes).abstract java.security.Principaluser()Provide the user identity.
-
-
-
Method Detail
-
operationId
public abstract java.lang.String operationId()
Description copied from interface:AccessContextProvide a unique id for the operation being validated (for correlation purposes).- Specified by:
operationIdin interfaceAccessContext
-
user
@Nullable @Nullable public abstract java.security.Principal user()
Description copied from interface:AccessContextProvide the user identity.- Specified by:
userin interfaceAccessContext
-
of
public static ServerAccessContext of(java.lang.String operationId, java.security.Principal principal)
-
-