1 8 package org.codehaus.loom.xmlpolicy.metadata; 9 10 17 public class PermissionMetaData 18 { 19 22 private final String m_classname; 23 24 28 private final String m_target; 29 30 35 private final String m_action; 36 37 41 private final String m_signedBy; 42 43 47 private final String m_keyStore; 48 49 56 public PermissionMetaData( final String classname, 57 final String target, 58 final String action, 59 final String signedBy, 60 final String keyStore ) 61 { 62 if( null == classname ) 63 { 64 throw new NullPointerException ( "classname" ); 65 } 66 if( null == signedBy && null != keyStore ) 67 { 68 throw new NullPointerException ( "signedBy" ); 69 } 70 if( null == keyStore && null != signedBy ) 71 { 72 throw new NullPointerException ( "keyStore" ); 73 } 74 75 m_classname = classname; 76 m_target = target; 77 m_action = action; 78 m_signedBy = signedBy; 79 m_keyStore = keyStore; 80 } 81 82 87 public String getClassname() 88 { 89 return m_classname; 90 } 91 92 97 public String getTarget() 98 { 99 return m_target; 100 } 101 102 107 public String getAction() 108 { 109 return m_action; 110 } 111 112 117 public String getSignedBy() 118 { 119 return m_signedBy; 120 } 121 122 127 public String getKeyStore() 128 { 129 return m_keyStore; 130 } 131 } 132 | Popular Tags |