- java.lang.Object
-
- org.postgresql.pljava.PLPrincipal
-
- org.postgresql.pljava.PLPrincipal.Sandboxed
-
- All Implemented Interfaces:
Serializable
,Principal
- Enclosing class:
- PLPrincipal
public static final class PLPrincipal.Sandboxed extends PLPrincipal
JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
that was declared with theTRUSTED
keyword and can be used to declare new functions by any role that has been grantedUSAGE
permission on it.A Java security policy can grant permissions to this
Principal
by class and wildcard name, or by class and the specific name given in SQL to the language.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.postgresql.pljava.PLPrincipal
PLPrincipal.Sandboxed, PLPrincipal.Unsandboxed
-
-
Field Summary
Fields Modifier and Type Field Description protected Lexicals.Identifier.Simple
m_name
-
Constructor Summary
Constructors Constructor Description Sandboxed(String name)
Construct an instance given its name inString
form.Sandboxed(Lexicals.Identifier.Simple name)
Construct an instance given its name already as anIdentifier.Simple
.
-
-
-
Field Detail
-
m_name
protected final Lexicals.Identifier.Simple m_name
-
-
Constructor Detail
-
Sandboxed
public Sandboxed(String name)
Construct an instance given its name inString
form.The name will be parsed as described for
Identifier.Simple.fromJava
.
-
Sandboxed
public Sandboxed(Lexicals.Identifier.Simple name)
Construct an instance given its name already as anIdentifier.Simple
.
-
-
Method Detail
-
trust
public Function.Trust trust()
ReturnsSANDBOXED
.- Specified by:
trust
in classPLPrincipal
-
equals
public boolean equals(Object other)
-
toString
public String toString()
-
hashCode
public int hashCode()
-
-