Class SessionObject

java.lang.Object
com.protegrity.ap.java.SessionObject

public class SessionObject extends Object
Hold the session object used in the API methods.

The session object is obtained by using the API method createSession. An example follows:

Sample source:


 SessionObject session = protectorApi.createSession( "policy user" );
 
Author:
Protegrity
  • Constructor Details

    • SessionObject

      public SessionObject(String apiUser)
      Default construct
      Parameters:
      apiUser - String containing the user name defined in the policy
  • Method Details

    • getSessionId

      public UUID getSessionId()
      Get session id. Retrieve the unique session id.
      Returns:
      The session UUID