psdi.security

Class ConnectionKey

  • java.lang.Object
    • psdi.security.ConnectionKey
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    SystemConnectionKey


    public class ConnectionKey
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • secondID

        public long secondID
    • Constructor Detail

      • ConnectionKey

        public ConnectionKey()
      • ConnectionKey

        public ConnectionKey(UserInfo userInfo)
    • Method Detail

      • isPreview

        public boolean isPreview()
      • getUID

        public java.rmi.server.UID getUID()
      • getLoginUserName

        public java.lang.String getLoginUserName()
        Get the login user name for this connection
        Returns:
      • getInetAddress

        public java.net.InetAddress getInetAddress()
      • hashCode

        public int hashCode()
        Returns a hashcode for this ConnectionKey. uid hashcode + inetaddress hashcode.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Compares this object against the specified object. The result is true if and only if the argument is not null and it represents the same Connection key as this object.
        Overrides:
        equals in class java.lang.Object
      • getCredential

        public java.lang.Object getCredential()
        Get the X509 certificate. It will return null if certificate is not passed in or not utilized at all.
        Returns:
      • setUID

        public void setUID(java.rmi.server.UID setuid)
      • setInetAddress

        public void setInetAddress(java.net.InetAddress setinetAddress)
      • commitOnConnectionFree

        public boolean commitOnConnectionFree()
        Whether to commit or rollback the db connection when the connection is freed (i.e. returned to the pool). If true, then the db connection is committed before it is returned to the pool. If false, then the db connection is rolled back before it is returned to the pool. The system default is to commit on free.
      • setRollbackOnConnectionFree

        public void setRollbackOnConnectionFree()
        Deprecated. 
        Sets the db connection to be rolled back when the connection is returned to the pool. Once a rollback is set on a connection, it cannot the reset to commit. The system default is to commit on free.
      • setCommitOnConnectionFree

        public void setCommitOnConnectionFree(boolean val)
        Overrides the default value of commitOnConnectionFree.
        Parameters:
        val - New value
      • getMTDBUser

        public java.lang.String getMTDBUser()
        Obtain the database user for multi-tenancy. If dbuser is not set, returns null.
        Returns:
      • getTenantID

        public int getTenantID()
        Returns the tenantID. it will be -1 if mtDBUser is set. The tenant id is only available if mtDBUser is not set.
        Returns: