1 23 24 package com.sun.enterprise.deployment.runtime.common; 25 26 import java.util.ArrayList ; 27 28 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor; 29 30 public class MessageSecurityDescriptor extends RuntimeDescriptor { 31 public static final String MESSAGE = "Message"; 32 public static final String REQUEST_PROTECTION = "RequestProtection"; 33 public static final String RESPONSE_PROTECTION = "ResponseProtection"; 34 35 private ArrayList messageDescs = new ArrayList (); 36 private ProtectionDescriptor requestProtectionDesc = null; 37 private ProtectionDescriptor responseProtectionDesc = null; 38 39 public MessageSecurityDescriptor() {} 40 41 public void addMessageDescriptor(MessageDescriptor messageDesc) { 42 messageDescs.add(messageDesc); 43 } 44 45 public ArrayList getMessageDescriptors() { 46 return messageDescs; 47 } 48 49 public ProtectionDescriptor getRequestProtectionDescriptor() { 50 return requestProtectionDesc; 51 } 52 53 public void setRequestProtectionDescriptor(ProtectionDescriptor proDesc) { 54 requestProtectionDesc = proDesc; 55 } 56 57 public ProtectionDescriptor getResponseProtectionDescriptor() { 58 return responseProtectionDesc; 59 } 60 61 public void setResponseProtectionDescriptor(ProtectionDescriptor proDesc) { 62 responseProtectionDesc = proDesc; 63 } 64 65 public ArrayList getAllMessageMethods() { 68 return new ArrayList (); 72 } 73 74 } 75 | Popular Tags |