Esempio n. 1
0
 // Set some system properties and Santuario providers. Run this block before any other class
 // initialization.
 static {
   ProvidersUtil.ensure();
   SystemPropertiesUtil.ensure();
   String keyInfoProp =
       SecurityActions.getSystemProperty("picketlink.xmlsig.includeKeyInfo", null);
   if (StringUtil.isNotNull(keyInfoProp)) {
     includeKeyInfoInSignature = Boolean.parseBoolean(keyInfoProp);
   }
 };
Esempio n. 2
0
 /**
  * Parse a space delimited list of strings
  *
  * @param startElement
  * @return
  */
 public static List<String> parseProtocolEnumeration(StartElement startElement) {
   List<String> protocolEnum = new ArrayList<String>();
   Attribute proto =
       startElement.getAttributeByName(
           new QName(JBossSAMLConstants.PROTOCOL_SUPPORT_ENUMERATION.get()));
   String val = StaxParserUtil.getAttributeValue(proto);
   if (StringUtil.isNotNull(val)) {
     StringTokenizer st = new StringTokenizer(val);
     while (st.hasMoreTokens()) {
       protocolEnum.add(st.nextToken());
     }
   }
   return protocolEnum;
 }