Examples of WSSecureConversationException


Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

  } catch(Exception e) {

      if (e instanceof WSSecureConversationException) {
    throw (WSSecureConversationException) e;
      } else {
    throw new WSSecureConversationException
        ("Secure Conversation failure: ", e);
      }
  }

  return token;
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

       final String identifier = "urn:uuid:" + UUID.randomUUID().toString();
       URI idURI;
       try{
           idURI = new URI(identifier);
       }catch (URISyntaxException ex){
           throw new WSSecureConversationException(ex.getMessage(), ex);
       }
       final String wsuId = "uuid-" + UUID.randomUUID().toString();
       if(wsscEleFac instanceof com.sun.xml.ws.security.secconv.WSSCElementFactory){
           return ((WSSCElementFactory)wsscEleFac).createSecurityContextToken(idURI, null, wsuId);
       }else if(wsscEleFac instanceof com.sun.xml.ws.security.secconv.WSSCElementFactory13){
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

       final String identifier = "urn:uuid:" + UUID.randomUUID().toString();
       URI idURI;
       try{
           idURI = new URI(identifier);
       }catch (URISyntaxException ex){
           throw new WSSecureConversationException(ex.getMessage(), ex);
       }
       final String wsuId = "uuid-" + UUID.randomUUID().toString();
      
       return eleFac.createSecurityContextToken(idURI, null, wsuId);
   }
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

   public static SecurityContextToken createSecurityContextToken(final WSTrustElementFactory wsscEleFac, final String identifier) throws WSSecureConversationException{      
       URI idURI;
       try{
           idURI = new URI(identifier);
       }catch (URISyntaxException ex){
           throw new WSSecureConversationException(ex.getMessage(), ex);
       }
       final String wsuId = "uuid-" + UUID.randomUUID().toString();
       final String wsuInstance = "uuid-" + UUID.randomUUID().toString();

       if(wsscEleFac instanceof com.sun.xml.ws.security.secconv.WSSCElementFactory){
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

   public static SecurityContextToken createSecurityContextToken(final WSSCElementFactory eleFac, final String identifier) throws WSSecureConversationException{      
       URI idURI;
       try{
           idURI = new URI(identifier);
       }catch (URISyntaxException ex){
           throw new WSSecureConversationException(ex.getMessage(), ex);
       }
       final String wsuId = "uuid-" + UUID.randomUUID().toString();
       final String wsuInstance = "uuid-" + UUID.randomUUID().toString();
      
       return eleFac.createSecurityContextToken(idURI, wsuInstance, wsuId);
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

  } catch(Exception e) {

      if (e instanceof WSSecureConversationException) {
    throw (WSSecureConversationException) e;
      } else {
    throw new WSSecureConversationException
        ("Secure Conversation failure: ", e);
      }
  }

  return token;
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

                        //map.put("SECURITY_TOKEN", ret);
                        info.getMap().put("SECURITY_TOKEN", ret);
                    } else {
                        log.log(Level.SEVERE,
                                LogStringsMessages.WSITPVD_0024_NULL_CLIENT_AUTH_CONTEXT());
                        throw new WSSecureConversationException(
                                LogStringsMessages.WSITPVD_0024_NULL_CLIENT_AUTH_CONTEXT());
                    }
                } else {
                    log.log(Level.SEVERE, LogStringsMessages.WSITPVD_0025_NULL_PACKET());
                    throw new RuntimeException(LogStringsMessages.WSITPVD_0025_NULL_PACKET());
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

      }
  } catch(Exception e) {
      if (e instanceof WSSecureConversationException) {
    throw (WSSecureConversationException) e;
      } else {
    throw new WSSecureConversationException
        ("Secure Conversation failure: ", e);
      }
  }
  return token;
    }
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

                    tokenExpired = true;
                    renew(ctx);
                    tokenExpired = false;                   
                    tmpCtx = issuedTokenContextMap.get(sctConfig.getTokenId());
                }else{
                    throw new WSSecureConversationException(ex);
                }
            }
            if(tmpCtx != null){
                ctx.setCreationTime(tmpCtx.getCreationTime());
                ctx.setExpirationTime(tmpCtx.getExpirationTime());
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.WSSecureConversationException

                scp.processRenew(ctx);
                String sctInfoKey = ((SecurityContextToken)ctx.getSecurityToken()).getIdentifier().toString()+"_"+
                        ((SecurityContextToken)ctx.getSecurityToken()).getInstance();               
                addSecurityContextTokenInfo(sctInfoKey, ctx.getSecurityContextTokenInfo());
            }else{
                throw new WSSecureConversationException("SecureConversation session for session Id:" + sctConfig.getTokenId() +"has expired.");
            }
        }else if(msgPolicy != null ){
            try{
                if(sctConfig.addRenewPolicy()){
                    appendEndorsingSCTRenewPolicy(msgPolicy);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.