gpt4 book ai didi

com.sun.xml.wss.XWSSecurityException.printStackTrace()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 04:28:40 26 4
gpt4 key购买 nike

本文整理了Java中com.sun.xml.wss.XWSSecurityException.printStackTrace()方法的一些代码示例,展示了XWSSecurityException.printStackTrace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWSSecurityException.printStackTrace()方法的具体详情如下:
包路径:com.sun.xml.wss.XWSSecurityException
类名称:XWSSecurityException
方法名:printStackTrace

XWSSecurityException.printStackTrace介绍

暂无

代码示例

代码示例来源:origin: com.hynnet/xws-security

/**
 *
 * @param Element
 * @param SecurableSoapMessage
 * @return String
 */
private String generateReferenceID(Element secElement, SecurableSoapMessage securableSoapMessage) {
  String id = secElement.getAttributeNS(MessageConstants.WSU_NS,"Id");
  //((Element)secElement).getAttribute(MessageConstants.WSU_ID_QNAME);
  if (id == null || id.equals("")) {
    try {
      id = securableSoapMessage.generateId();
    } catch(XWSSecurityException xse) {
      xse.printStackTrace();
    }
    XMLUtil.setWsuIdAttr((Element)secElement, id);
  }
  if(logger.isLoggable(Level.FINE)){
    logger.log(Level.FINE, "Element wsu:id attribute is: "+id);
  }
  return id;
}

代码示例来源:origin: net.gltd.gtms.telephony/etrali-websvc

e.printStackTrace();
lastError = "Error while adding Security Handler  (EtradealSettings)!";
logger.error(lastError);

代码示例来源:origin: net.gltd.gtms.telephony/etrali-websvc

e.printStackTrace();
lastError = "Error while adding Security Handler  (SDNManagement)!";
logger.error(lastError);

代码示例来源:origin: net.gltd.gtms.telephony/etrali-websvc

e.printStackTrace();
lastError = "Error while adding Security Handler (UserPresence) !";
logger.error(lastError);

代码示例来源:origin: net.gltd.gtms.telephony/etrali-websvc

e.printStackTrace();
lastError = "Error while adding Security Handler (UserManagement) !";
logger.error(lastError);

代码示例来源:origin: com.hynnet/xws-security

MessageConstants.REQUESTER_SERIAL, sharedState.get(REQUESTER_SERIAL));
    }
     private void populateSharedStateFromContext(Map sharedState, ProcessingContextImpl context) {
      sharedState.put(
        REQUESTER_SUBJECT, context.getExtraneousProperty(MessageConstants.AUTH_SUBJECT));
      sharedState.put(
        REQUESTER_KEYID, context.getExtraneousProperty(MessageConstants.REQUESTER_KEYID));
      sharedState.put(
        REQUESTER_ISSUERNAME, 
          context.getExtraneousProperty(MessageConstants.REQUESTER_ISSUERNAME));
      sharedState.put(
        REQUESTER_SERIAL, context.getExtraneousProperty(MessageConstants.REQUESTER_SERIAL));
     }
}

代码示例来源:origin: com.hynnet/xws-security

throw new AuthException(xwsse.getMessage());
       } 
    }
     public void disposeSubject (Subject subject,
                  Map sharedState)
          throws AuthException {
       if (subject == null) {
        // log
        throw new AuthException("Error disposing Subject: null value for Subject");
       }
        if (!subject.isReadOnly()) {
         // log
         //subject = new Subject();
         return;
       }
        Set principals = subject.getPrincipals();
       Set privateCredentials = subject.getPrivateCredentials();
       Set publicCredentials = subject.getPublicCredentials();
        try {
        principals.clear();
       } catch (UnsupportedOperationException uoe) {
        // log
       }            
         Iterator pi = privateCredentials.iterator();
       while (pi.hasNext()) {

代码示例来源:origin: com.hynnet/xws-security

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com