com.ibm.mfp.server.security.external.checks.impl

Class ExternalizableSecurityCheck

  • java.lang.Object
    • com.ibm.mfp.server.security.external.checks.impl.ExternalizableSecurityCheck
    • Constructor Detail

      • ExternalizableSecurityCheck

        public ExternalizableSecurityCheck()
    • Method Detail

      • createConfiguration

        public SecurityCheckConfiguration createConfiguration(java.util.Properties properties)
        Description copied from interface: SecurityCheck
        Create configuration object and populate fields from the given properties. Use errors and warnings maps to report problems.
        Called during deployment.
        Specified by:
        createConfiguration in interface SecurityCheck
        Parameters:
        properties - the merged properties to read and validate
        Returns:
        new configuration object, not null
      • getInactivityTimeoutSec

        public int getInactivityTimeoutSec()
        Description copied from interface: SecurityCheck
        Get the security check inactivity timeout, usually the configured value. 0 means no inactivity timeout defined for this check
        Specified by:
        getInactivityTimeoutSec in interface SecurityCheck
        Returns:
        inactivity timeout in seconds, 0 if none
      • setContext

        public void setContext(java.lang.String name,
                      SecurityCheckConfiguration config,
                      AuthorizationContext authorizationContext,
                      RegistrationContext registrationContext)
        Description copied from interface: SecurityCheck
        Initialize the security check with the context and configuration properties. This method is called after instantiation and also on each retrieve. The security checks should not keep the configuration data in the persistent state
        Specified by:
        setContext in interface SecurityCheck
        Parameters:
        name - name of the security check
        config - security check configuration created by SecurityCheck.createConfiguration(Properties)
        authorizationContext - provides access to the transient state of the calling client
        registrationContext - provides access to the persistent state of the calling client
      • logout

        public void logout()
        Description copied from interface: SecurityCheck
        Called upon explicit logout from this security check. The implementation may choose to modify or delete its persistent (registered) state, or other custom logic.
        The transient state of this security check is destroyed automatically.
        Specified by:
        logout in interface SecurityCheck
      • writeExternal

        public void writeExternal(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • getName

        protected java.lang.String getName()
      • initStateDurations

        protected abstract void initStateDurations(java.util.Map durations)
        Put the state names supported by this security check and their durations in seconds into the input map.
        Implementations may use ExternalizableSecurityCheck.getConfiguration() method to access configured values. The state ExternalizableSecurityCheck.STATE_EXPIRED is predefined, and should not be put into the map.
        Parameters:
        durations - map with the state names as keys and their durations in seconds as values


© Copyright IBM Corp. 2006, 2015. All Rights Reserved.