/** * Set the client secret for facebook * * @param clientSecret */ public void setClientSecret(String clientSecret) { this.clientSecret = StringUtil.getSystemPropertyAsString(clientSecret); }
/** * Set the url where the 3rd party authentication service will redirect after authentication * * @param returnURL */ public void setReturnURL(String returnURL) { this.returnURL = StringUtil.getSystemPropertyAsString(returnURL); }
/** * Set the scope for facebook (Default: email) * * @param facebookScope */ public void setFacebookScope(String facebookScope) { this.facebookScope = StringUtil.getSystemPropertyAsString(facebookScope); }
/** * Set the client id for facebook * * @param clientID */ public void setClientID(String clientID) { this.clientID = StringUtil.getSystemPropertyAsString(clientID); }
public void setReturnURL(String returnURL) { this.returnURL = StringUtil.getSystemPropertyAsString(returnURL); }
public void setReturnURL(String returnURL) { this.returnURL = StringUtil.getSystemPropertyAsString(returnURL); }
/** * A comma separated string that represents the roles the web app needs to pass authorization * * @param roleStr */ public void setRoleString(String roleStr) { if (roleStr == null) throw new RuntimeException("Role String is null in configuration"); StringTokenizer st = new StringTokenizer(StringUtil.getSystemPropertyAsString(roleStr), ","); while (st.hasMoreElements()) { roles.add(st.nextToken()); } }
/** * Given an {@code Attribute}, get its trimmed value * * @param attribute * @return */ public static String getAttributeValue(Attribute attribute) { String str = trim(attribute.getValue()); str = StringUtil.getSystemPropertyAsString(str); return str; }
/** * Given an {@code Attribute}, get its trimmed value * @param attribute * @return */ public static String getAttributeValue(Attribute attribute) { String str = trim(attribute.getValue()); str = StringUtil.getSystemPropertyAsString(str); return str; }
/** * Given an {@code Attribute}, get its trimmed value * @param attribute * @return */ public static String getAttributeValue(Attribute attribute) { String str = trim(attribute.getValue()); str = StringUtil.getSystemPropertyAsString(str); return str; }
/** * Get the element text. * * @param xmlEventReader * @return A <b>trimmed</b> string value * @throws ParsingException */ public static String getElementText(XMLEventReader xmlEventReader) throws ParsingException { String str = null; try { str = xmlEventReader.getElementText().trim(); str = StringUtil.getSystemPropertyAsString(str); } catch (XMLStreamException e) { throw logger.parserException(e); } return str; }
/** * Get the element text. * @param xmlEventReader * @return A <b>trimmed</b> string value * @throws ParsingException */ public static String getElementText(XMLEventReader xmlEventReader) throws ParsingException { String str = null; try { str = xmlEventReader.getElementText().trim(); str = StringUtil.getSystemPropertyAsString(str); } catch (XMLStreamException e) { throw new ParsingException(e); } return str; }
/** * Get the element text. * @param xmlEventReader * @return A <b>trimmed</b> string value * @throws ParsingException */ public static String getElementText(XMLEventReader xmlEventReader) throws ParsingException { String str = null; try { str = xmlEventReader.getElementText().trim(); str = StringUtil.getSystemPropertyAsString(str); } catch (XMLStreamException e) { throw new ParsingException(e); } return str; }