CASC-103
updated javadoc to explain the purpose of the method
This commit is contained in:
parent
f5984a088d
commit
b76ce0dcc9
|
|
@ -95,7 +95,20 @@ public class Cas20ServiceTicketValidator extends AbstractCasProtocolUrlBasedTick
|
|||
|
||||
return assertion;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Default attribute parsing of attributes that look like the following:
|
||||
* <cas:attributes>
|
||||
* <cas:attribute1>value</cas:attribute1>
|
||||
* <cas:attribute2>value</cas:attribute2>
|
||||
* </cas:attributes>
|
||||
* <p>
|
||||
* This code is here merely for sample/demonstration purposes for those wishing to modify the CAS2 protocol. You'll
|
||||
* probably want a more robust implementation or to use SAML 1.1
|
||||
*
|
||||
* @param xml the XML to parse.
|
||||
* @return the map of attributes.
|
||||
*/
|
||||
protected Map extractCustomAttributes(final String xml) {
|
||||
final int pos1 = xml.indexOf("<cas:attributes>");
|
||||
final int pos2 = xml.indexOf("</cas:attributes>");
|
||||
|
|
|
|||
Loading…
Reference in New Issue