Search in sources :

Example 1 with RequestNotSupportedException

use of com.ibm.as400.access.RequestNotSupportedException in project openicf by Evolveum.

the class OS400Connector method fetchPasswordLevel.

protected void fetchPasswordLevel() throws ConnectorException {
    try {
        SystemValue systemValue = new SystemValue(as400, "QPWDLVL");
        Object qpwdlvl = systemValue.getValue();
        if (qpwdlvl instanceof Integer) {
            this.passwordLevel = ((Integer) qpwdlvl).intValue();
        }
    } catch (RequestNotSupportedException e) {
        this.passwordLevel = QPWDLVL_UNSET;
        LOG.error("QPWDLVL System Value not supported on this resource");
    } catch (Exception e) {
        throw new ConnectorException(e);
    }
}
Also used : SystemValue(com.ibm.as400.access.SystemValue) RequestNotSupportedException(com.ibm.as400.access.RequestNotSupportedException) ConnectorException(org.identityconnectors.framework.common.exceptions.ConnectorException) ConnectorSecurityException(org.identityconnectors.framework.common.exceptions.ConnectorSecurityException) IntrospectionException(java.beans.IntrospectionException) ConnectorIOException(org.identityconnectors.framework.common.exceptions.ConnectorIOException) ConnectorException(org.identityconnectors.framework.common.exceptions.ConnectorException) RequestNotSupportedException(com.ibm.as400.access.RequestNotSupportedException) IOException(java.io.IOException) AS400SecurityException(com.ibm.as400.access.AS400SecurityException)

Aggregations

AS400SecurityException (com.ibm.as400.access.AS400SecurityException)1 RequestNotSupportedException (com.ibm.as400.access.RequestNotSupportedException)1 SystemValue (com.ibm.as400.access.SystemValue)1 IntrospectionException (java.beans.IntrospectionException)1 IOException (java.io.IOException)1 ConnectorException (org.identityconnectors.framework.common.exceptions.ConnectorException)1 ConnectorIOException (org.identityconnectors.framework.common.exceptions.ConnectorIOException)1 ConnectorSecurityException (org.identityconnectors.framework.common.exceptions.ConnectorSecurityException)1