Example usage for javax.crypto BadPaddingException getMessage

List of usage examples for javax.crypto BadPaddingException getMessage

Introduction

In this page you can find the example usage for javax.crypto BadPaddingException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientTSecGroupTable.java

public CFAstTSecGroupBuff[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTSecGroupMessageFormatter.formatTSecGroupRqstReadAll("\n\t\t\t") + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*from  ww  w.ja v  a 2s.c o  m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object sortedListObj = responseHandler.getListOfObjects();
    if (sortedListObj == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getListOfObjects");
    }
    List<ICFAstTSecGroupObj> sortedList = (List<ICFAstTSecGroupObj>) sortedListObj;
    int sz = sortedList.size();
    CFAstTSecGroupBuff arr[] = new CFAstTSecGroupBuff[sz];
    Iterator<ICFAstTSecGroupObj> iter = sortedList.iterator();
    ICFAstTSecGroupObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstTSecGroupObj) iter.next();
        arr[idx] = cur.getTSecGroupBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientTSecGroupTable.java

public CFAstTSecGroupBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTSecGroupMessageFormatter.formatTSecGroupRqstReadByTenantIdx("\n\t\t\t", argTenantId)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {// ww  w . j  a  v a2s.c  om
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object sortedListObj = responseHandler.getListOfObjects();
    if (sortedListObj == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getListOfObjects");
    }
    List<ICFAstTSecGroupObj> sortedList = (List<ICFAstTSecGroupObj>) sortedListObj;
    int sz = sortedList.size();
    CFAstTSecGroupBuff arr[] = new CFAstTSecGroupBuff[sz];
    Iterator<ICFAstTSecGroupObj> iter = sortedList.iterator();
    ICFAstTSecGroupObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstTSecGroupObj) iter.next();
        arr[idx] = cur.getTSecGroupBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientURLProtocolTable.java

public void updateURLProtocol(CFAstAuthorization Authorization, CFAstURLProtocolBuff Buff) {
    final String S_ProcName = "updateURLProtocol";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgURLProtocolMessageFormatter.formatURLProtocolRqstUpdate("\n\t\t\t", Buff) + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//from w  w w .  j a  va 2s .  c  om
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstURLProtocolBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstURLProtocolObj realized = null;
        if (lastObjectProcessed instanceof ICFAstURLProtocolObj) {
            realized = (ICFAstURLProtocolObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstURLProtocolObj");
        }
        if (realized != null) {
            buff = realized.getURLProtocolBuff();
        }
    }
    if (buff != null) {
        Buff.set(buff);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientSecAppTable.java

public CFAstSecAppBuff readDerivedByUJEEMountIdx(CFAstAuthorization Authorization, long argClusterId,
        String argJEEMountName) {
    final String S_ProcName = "readDerivedByUJEEMountIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAstXMsgSecAppMessageFormatter.formatSecAppRqstReadByUJEEMountIdx("\n\t\t\t",
                    argClusterId, argJEEMountName)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/* w  w  w . j a  va2s.  c  om*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstSecAppBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstSecAppObj realized = null;
        if (lastObjectProcessed instanceof ICFAstSecAppObj) {
            realized = (ICFAstSecAppObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstSecAppObj");
        }
        if (realized != null) {
            buff = realized.getSecAppBuff();
        }
    }
    return (buff);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientSecAppTable.java

public void updateSecApp(CFAstAuthorization Authorization, CFAstSecAppBuff Buff) {
    final String S_ProcName = "updateSecApp";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecAppMessageFormatter.formatSecAppRqstUpdate("\n\t\t\t", Buff) + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*  w  ww.  ja v  a 2 s  .com*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstSecAppBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstSecAppObj realized = null;
        if (lastObjectProcessed instanceof ICFAstSecAppObj) {
            realized = (ICFAstSecAppObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstSecAppObj");
        }
        if (realized != null) {
            buff = realized.getSecAppBuff();
        }
    }
    if (buff != null) {
        Buff.set(buff);
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientSecGroupTable.java

public void createSecGroup(CFAstAuthorization Authorization, CFAstSecGroupBuff Buff) {
    final String S_ProcName = "createSecGroup";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecGroupMessageFormatter.formatSecGroupRqstCreate("\n\t\t\t", Buff) + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//from w w  w . ja  v a 2 s  .c  om
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstSecGroupObj realized = null;
        if (lastObjectProcessed instanceof ICFAstSecGroupObj) {
            realized = (ICFAstSecGroupObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstSecGroupObj");
        }
        if (realized != null) {
            Buff.set(realized.getSecGroupBuff());
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getLastObjectProcessed()");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientTSecGroupTable.java

public void createTSecGroup(CFAstAuthorization Authorization, CFAstTSecGroupBuff Buff) {
    final String S_ProcName = "createTSecGroup";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTSecGroupMessageFormatter.formatTSecGroupRqstCreate("\n\t\t\t", Buff) + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*from  w  ww  .j av a 2s . c o  m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstTSecGroupObj realized = null;
        if (lastObjectProcessed instanceof ICFAstTSecGroupObj) {
            realized = (ICFAstTSecGroupObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstTSecGroupObj");
        }
        if (realized != null) {
            Buff.set(realized.getTSecGroupBuff());
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getLastObjectProcessed()");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientSecGroupTable.java

public CFAstSecGroupBuff readDerivedByIdIdx(CFAstAuthorization Authorization, long argClusterId,
        int argSecGroupId) {
    final String S_ProcName = "readDerivedByIdIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAstXMsgSecGroupMessageFormatter.formatSecGroupRqstReadByIdIdx("\n\t\t\t",
                    argClusterId, argSecGroupId)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//w  ww  .j  a  v  a  2s.  co  m
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstSecGroupBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstSecGroupObj realized = null;
        if (lastObjectProcessed instanceof ICFAstSecGroupObj) {
            realized = (ICFAstSecGroupObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstSecGroupObj");
        }
        if (realized != null) {
            buff = realized.getSecGroupBuff();
        }
    }
    return (buff);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientSecGroupTable.java

public CFAstSecGroupBuff readDerivedByUNameIdx(CFAstAuthorization Authorization, long argClusterId,
        String argName) {/*from ww  w  .j  a v  a2 s .c  om*/
    final String S_ProcName = "readDerivedByUNameIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecGroupMessageFormatter.formatSecGroupRqstReadByUNameIdx("\n\t\t\t", argClusterId,
                    argName)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstSecGroupBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstSecGroupObj realized = null;
        if (lastObjectProcessed instanceof ICFAstSecGroupObj) {
            realized = (ICFAstSecGroupObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstSecGroupObj");
        }
        if (realized != null) {
            buff = realized.getSecGroupBuff();
        }
    }
    return (buff);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientSecGroupTable.java

public void updateSecGroup(CFAstAuthorization Authorization, CFAstSecGroupBuff Buff) {
    final String S_ProcName = "updateSecGroup";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecGroupMessageFormatter.formatSecGroupRqstUpdate("\n\t\t\t", Buff) + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*from   w  ww.j a va  2s .  co m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstSecGroupBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstSecGroupObj realized = null;
        if (lastObjectProcessed instanceof ICFAstSecGroupObj) {
            realized = (ICFAstSecGroupObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstSecGroupObj");
        }
        if (realized != null) {
            buff = realized.getSecGroupBuff();
        }
    }
    if (buff != null) {
        Buff.set(buff);
    }
}