|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.policy.parser.SecurityPolicyToken
Field Summary | |
static int |
COMPLEX_TOKEN
The following values describe the type of the security token. |
static int |
SIMPLE_TOKEN
|
static int |
WITH_CONTENT
|
Constructor Summary | |
SecurityPolicyToken(java.lang.String token,
int type,
java.lang.String[] attribs)
Create a SecurityPolicyToken data structure. |
|
SecurityPolicyToken(java.lang.String token,
int type,
java.lang.String[] attribs,
java.lang.Object h)
Create a SecurityPolicyToken data structure. |
Method Summary | |
SecurityPolicyToken |
copy()
Copy this SecurityPolicyToken and return the copy. |
java.lang.String[] |
getAttributes()
|
SecurityPolicyToken |
getChildToken(java.lang.String sptName)
Gets a named child token, |
java.lang.String |
getTokenName()
|
int |
getTokenType()
|
boolean |
invokeProcessTokenMethod(SecurityProcessorContext spc)
Invoke the processing method for this token. |
void |
removeChildToken(java.lang.String sptName)
Remove a named child token, |
void |
setChildToken(SecurityPolicyToken spt)
Add a Child token to this complex token. |
void |
setProcessTokenMethod(java.lang.Object h)
Set the method which processes this security token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COMPLEX_TOKEN
public static final int SIMPLE_TOKEN
public static final int WITH_CONTENT
Constructor Detail |
public SecurityPolicyToken(java.lang.String token, int type, java.lang.String[] attribs, java.lang.Object h) throws java.lang.SecurityException, java.lang.NoSuchMethodException
token
- The name of the token, equals to to local name of the XML
elementtype
- Type of the token. Either complex or simple. Can have a flag
if the token containes some data.attribs
- The names of allowed attributes on this tokenh
- The handler object that implements the processing method. The
name of a processing method is constructed by prepending a
"do" to the token name
java.lang.SecurityException
java.lang.NoSuchMethodException
public SecurityPolicyToken(java.lang.String token, int type, java.lang.String[] attribs)
token
- The name of the token, equals to to local name of the XML
elementtype
- Type of the token. Either complex or simple. Can have a flag
if the token containes some data.attribs
- The names of allowed attributes on this token processing
method is constructed by prepending a "do" to the token nameMethod Detail |
public java.lang.String[] getAttributes()
public void setProcessTokenMethod(java.lang.Object h) throws java.lang.NoSuchMethodException
h
- The handler object that implements the processing method. The
name of a processing method is constructed by prepending a
"do" to the token name.
java.lang.NoSuchMethodException
public boolean invokeProcessTokenMethod(SecurityProcessorContext spc) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
spc
- The SecurityProcessContext handed over to the processing
method
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.String getTokenName()
public void setChildToken(SecurityPolicyToken spt)
spt
- The child token to add to this Complex tokenpublic SecurityPolicyToken getChildToken(java.lang.String sptName)
sptName
- The token name to check for
public void removeChildToken(java.lang.String sptName)
sptName
- The token name to removepublic SecurityPolicyToken copy()
public int getTokenType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |