- java.lang.Object
-
- org.postgresql.pljava.PLPrincipal
-
- org.postgresql.pljava.PLPrincipal.Unsandboxed
-
- All Implemented Interfaces:
Serializable
,Principal
- Enclosing class:
- PLPrincipal
public static final class PLPrincipal.Unsandboxed extends PLPrincipal
JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
that was declared without theTRUSTED
keyword, and can be used to declare new functions only by a PostgreSQL superuser.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 Unsandboxed(String name)
Construct an instance given its name inString
form.Unsandboxed(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
-
Unsandboxed
public Unsandboxed(String name)
Construct an instance given its name inString
form.The name will be parsed as described for
Identifier.Simple.fromJava
.
-
Unsandboxed
public Unsandboxed(Lexicals.Identifier.Simple name)
Construct an instance given its name already as anIdentifier.Simple
.
-
-
Method Detail
-
trust
public Function.Trust trust()
ReturnsUNSANDBOXED
.- Specified by:
trust
in classPLPrincipal
-
equals
public boolean equals(Object other)
-
toString
public String toString()
-
hashCode
public int hashCode()
-
-