|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.impl.policy.mls.MessagePolicy
public class MessagePolicy
Represents an ordered collection of Security Policies
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
MessagePolicy()
Construct an Empty MessagePolicy |
|
| Method Summary | |
|---|---|
void |
addOptionalTarget(Target target)
|
void |
addOptionalTargets(ArrayList optionls)
|
void |
append(SecurityPolicy item)
Append a SecurityPolicy |
void |
appendAll(Collection items)
Append a policy collection |
boolean |
dumpMessages()
|
void |
dumpMessages(boolean dump)
|
boolean |
enableDynamicPolicy()
|
void |
enableDynamicPolicy(boolean flag)
|
boolean |
enableSignatureConfirmation()
|
void |
enableSignatureConfirmation(boolean flag)
|
boolean |
enableWSS11Policy()
|
void |
enableWSS11Policy(boolean flag)
|
boolean |
equals(MessagePolicy policy)
Equals operator |
SecurityPolicy |
get(int index)
Get the Security policy at the specified index |
AlgorithmSuite |
getAlgorithmSuite()
|
MessageLayout |
getLayout()
|
int |
getOptimizedType()
|
String |
getPolicyAlternativeId()
|
ArrayList |
getPrimaryPolicies()
|
ArrayList |
getSecondaryPolicies()
|
String |
getType()
Get the type of the policy. |
WSSAssertion |
getWSSAssertion()
|
void |
insertBefore(SecurityPolicy existing,
SecurityPolicy additional)
Insert the additional policy before the existing policy |
boolean |
isBSP()
|
void |
isBSP(boolean flag)
|
boolean |
isEmpty()
|
boolean |
isSSL()
|
Iterator |
iterator()
|
void |
prepend(SecurityPolicy item)
Prepend a SecurityPolicy |
void |
remove(SecurityPolicy item)
remove the specified SecurityPolicy |
void |
removeAll()
clear this policy collection |
void |
removeOptionalTargets()
|
void |
setAlgorithmSuite(AlgorithmSuite algSuite)
|
void |
setLayout(MessageLayout layout)
|
void |
setPolicyAlternativeId(String polId)
|
void |
setSSL(boolean value)
|
void |
setWSSAssertion(WSSAssertion wssAssertion)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger log
| Constructor Detail |
|---|
public MessagePolicy()
| Method Detail |
|---|
public int getOptimizedType()
throws XWSSecurityException
XWSSecurityException
public void append(SecurityPolicy item)
throws PolicyGenerationException
item - SecurityPolicy instance to be appended
PolicyGenerationException - if the policy being appended is
not an instance of WSSPolicy
public void prepend(SecurityPolicy item)
throws PolicyGenerationException
item - SecurityPolicy instance to be prepended
PolicyGenerationException - if the policy being prepended is
not an instance of WSSPolicy
public void appendAll(Collection items)
throws PolicyGenerationException
items - Collection of SecurityPolicy instances to be appended
PolicyGenerationExceptionpublic void removeAll()
public int size()
public SecurityPolicy get(int index)
throws Exception
index - index to the policy collection
Exception - if a policy could not be retrievedpublic Iterator iterator()
Iterator iterator on policy collectionpublic boolean isEmpty()
public void remove(SecurityPolicy item)
item - the SecurityPolicy instance to be removed
public void insertBefore(SecurityPolicy existing,
SecurityPolicy additional)
throws PolicyGenerationException
existing - SecurityPolicy instance before which the additional policy needs to be insertedadditional - SecurityPolicy instance to be inserted
PolicyGenerationException - if the policy to be inserted is not an instance of WSSPolicy,
or there is an error in inserting the policypublic void dumpMessages(boolean dump)
dump - set it to true if messages should be Loggedpublic boolean dumpMessages()
public void enableDynamicPolicy(boolean flag)
public boolean enableDynamicPolicy()
public void setWSSAssertion(WSSAssertion wssAssertion)
throws PolicyGenerationException
PolicyGenerationExceptionpublic WSSAssertion getWSSAssertion()
public void enableSignatureConfirmation(boolean flag)
throws PolicyGenerationException
PolicyGenerationExceptionpublic boolean enableSignatureConfirmation()
public void enableWSS11Policy(boolean flag)
public boolean enableWSS11Policy()
public void isBSP(boolean flag)
public boolean isBSP()
public void removeOptionalTargets()
public void addOptionalTargets(ArrayList optionls)
throws XWSSecurityException
XWSSecurityExceptionpublic void addOptionalTarget(Target target)
public boolean equals(MessagePolicy policy)
policy - MessagePolicy to be compared for equality
public ArrayList getPrimaryPolicies()
public ArrayList getSecondaryPolicies()
public String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
getType in interface SecurityPolicypublic void setAlgorithmSuite(AlgorithmSuite algSuite)
public AlgorithmSuite getAlgorithmSuite()
public MessageLayout getLayout()
public void setLayout(MessageLayout layout)
public void setSSL(boolean value)
public boolean isSSL()
public String getPolicyAlternativeId()
public void setPolicyAlternativeId(String polId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||