Package org.jboss.ws.metadata.wsse

Examples of org.jboss.ws.metadata.wsse.Requires


      return operation.getConfig();
   }

   private boolean hasRequirements(Config config, boolean fault)
   {
      Requires requires = (config != null) ? config.getRequires() : null;
      return requires != null && (!fault || requires.includesFaults());

   }
View Full Code Here


/*     */   {
/* 198 */     Config operationConfig = getConfig(config, port, operation);
/* 199 */     if (operationConfig == null) {
/* 200 */       return null;
/*     */     }
/* 202 */     Requires requires = operationConfig.getRequires();
/* 203 */     if (requires == null) {
/* 204 */       return null;
/*     */     }
/* 206 */     ArrayList operations = new ArrayList();
/* 207 */     RequireTimestamp requireTimestamp = requires.getRequireTimestamp();
/* 208 */     if (requireTimestamp != null) {
/* 209 */       operations.add(new OperationDescription(RequireTimestampOperation.class, null, requireTimestamp.getMaxAge(), null, null));
/*     */     }
/* 211 */     RequireSignature requireSignature = requires.getRequireSignature();
/* 212 */     if (requireSignature != null)
/*     */     {
/* 214 */       List targets = convertTargets(requireSignature.getTargets());
/* 215 */       operations.add(new OperationDescription(RequireSignatureOperation.class, targets, null, null, null));
/*     */     }
/*     */
/* 218 */     RequireEncryption requireEncryption = requires.getRequireEncryption();
/* 219 */     if (requireEncryption != null)
/*     */     {
/* 221 */       List targets = convertTargets(requireEncryption.getTargets());
/* 222 */       operations.add(new OperationDescription(RequireEncryptionOperation.class, targets, null, null, null));
/*     */     }
View Full Code Here

   {     
    Config operationConfig = getConfig(config, port, operation);
      if (operationConfig == null)
         return null;

      Requires requires = operationConfig.getRequires();
      if (requires == null)
         return null;

      ArrayList<OperationDescription<RequireOperation>> operations = new ArrayList<OperationDescription<RequireOperation>>();
      RequireTimestamp requireTimestamp = requires.getRequireTimestamp();
      if (requireTimestamp != null)
         operations.add(new OperationDescription<RequireOperation>(RequireTimestampOperation.class, null, requireTimestamp.getMaxAge(), null, null));

      RequireSignature requireSignature = requires.getRequireSignature();
      if (requireSignature != null)
      {
         List<Target> targets = convertTargets(requireSignature.getTargets());
         operations.add(new OperationDescription<RequireOperation>(RequireSignatureOperation.class, targets, null, null, null));
      }

      RequireEncryption requireEncryption = requires.getRequireEncryption();
      if (requireEncryption != null)
      {
         List<Target> targets = convertTargets(requireEncryption.getTargets());
         operations.add(new OperationDescription<RequireOperation>(RequireEncryptionOperation.class, targets, null, null, null));
      }
View Full Code Here

   private List<RequireOperation> buildRequireOperations(Config operationConfig)
   {
      if (operationConfig == null)
         return null;
     
      Requires requires = operationConfig.getRequires();
      if (requires == null)
         return null;

      ArrayList<RequireOperation> operations = new ArrayList<RequireOperation>();
      RequireTimestamp requireTimestamp = requires.getRequireTimestamp();
      if (requireTimestamp != null)
         operations.add(new RequireTimestampOperation(requireTimestamp.getMaxAge()));

      RequireSignature requireSignature = requires.getRequireSignature();
      if (requireSignature != null)
      {
         List<Target> targets = convertTargets(requireSignature.getTargets());
         operations.add(new RequireSignatureOperation(targets));
      }

      RequireEncryption requireEncryption = requires.getRequireEncryption();
      if (requireEncryption != null)
      {
         List<Target> targets = convertTargets(requireEncryption.getTargets());
         operations.add(new RequireEncryptionOperation(targets));
      }
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsse.Requires

Copyright © 2018 www.massapicom. 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.