Package io.prestosql.security
Class SecurityContext
- java.lang.Object
-
- io.prestosql.security.SecurityContext
-
public class SecurityContext extends Object
-
-
Constructor Summary
Constructors Constructor Description SecurityContext(TransactionId transactionId, Identity identity, QueryId queryId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Identity
getIdentity()
QueryId
getQueryId()
TransactionId
getTransactionId()
int
hashCode()
static SecurityContext
of(Session session)
SystemSecurityContext
toSystemSecurityContext()
-
-
-
Constructor Detail
-
SecurityContext
public SecurityContext(TransactionId transactionId, Identity identity, QueryId queryId)
-
-
Method Detail
-
of
public static SecurityContext of(Session session)
-
getTransactionId
public TransactionId getTransactionId()
-
getIdentity
public Identity getIdentity()
-
getQueryId
public QueryId getQueryId()
-
toSystemSecurityContext
public SystemSecurityContext toSystemSecurityContext()
-
-