public IssuerInfoHolder(String issuerAsString) { if (issuerAsString == null) throw new IllegalArgumentException(ErrorCodes.NULL_ARGUMENT + "issuerAsString"); issuer = new NameIDType(); issuer.setValue(issuerAsString); }
public IssuerInfoHolder(String issuerAsString) { if (issuerAsString == null) throw new IllegalArgumentException(ErrorCodes.NULL_ARGUMENT + "issuerAsString"); issuer = new NameIDType(); issuer.setValue(issuerAsString); }
/** * Return the NameIDType for the issuer * @param issuerID * @return */ public static NameIDType getIssuer(String issuerID) { NameIDType nid = new NameIDType(); nid.setValue(issuerID); return nid; } }
/** * Return the NameIDType for the issuer * @param issuerID * @return */ public static NameIDType getIssuer(String issuerID) { NameIDType nid = new NameIDType(); nid.setValue(issuerID); return nid; } }
/** * Return the NameIDType for the issuer * * @param issuerID * @return */ public static NameIDType getIssuer(String issuerID) { NameIDType nid = new NameIDType(); nid.setValue(issuerID); return nid; } }
/** * Return the NameIDType for the issuer * * @param issuerID * * @return */ public static NameIDType getIssuer(String issuerID) { NameIDType nid = new NameIDType(); nid.setValue(issuerID); return nid; } }
/** * Return the NameIDType for the issuer * * @param issuerID * * @return */ public static NameIDType getIssuer(String issuerID) { NameIDType nid = new NameIDType(); nid.setValue(issuerID); return nid; } }
public IssuerInfoHolder(String issuerAsString) { if (issuerAsString == null) throw logger.nullArgumentError("issuerAsString"); issuer = new NameIDType(); issuer.setValue(issuerAsString); }
public IssuerInfoHolder(String issuerAsString) { if (issuerAsString == null) throw logger.nullArgumentError("issuerAsString"); issuer = new NameIDType(); issuer.setValue(issuerAsString); }
public IssuerInfoHolder(String issuerAsString) { if (issuerAsString == null) throw logger.nullArgumentError("issuerAsString"); issuer = new NameIDType(); issuer.setValue(issuerAsString); }
/** * Given a user name, create a {@code SubjectType} that can then be inserted into an assertion * * @param userName * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
/** * Create a Logout Request * * @param issuer * @return * @throws ConfigurationException */ public LogoutRequestType createLogoutRequest(String issuer) throws ConfigurationException { LogoutRequestType lrt = new LogoutRequestType(IDGenerator.create("ID_"), XMLTimeUtil.getIssueInstant()); // Create an issuer NameIDType issuerNameID = new NameIDType(); issuerNameID.setValue(issuer); lrt.setIssuer(issuerNameID); return lrt; }
/** * Create a Logout Request * @param issuer * @return * @throws ConfigurationException */ public LogoutRequestType createLogoutRequest(String issuer) throws ConfigurationException { LogoutRequestType lrt = new LogoutRequestType(IDGenerator.create("ID_"), XMLTimeUtil.getIssueInstant()); //Create an issuer NameIDType issuerNameID = new NameIDType(); issuerNameID.setValue(issuer); lrt.setIssuer(issuerNameID); return lrt; }
/** * Given a user name, create a {@code SubjectType} that can then be inserted into an assertion * * @param userName * * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
/** * Given a user name, create a {@code SubjectType} * that can then be inserted into an assertion * @param userName * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
protected void parseCommonElements(StartElement startElement, XMLEventReader xmlEventReader, RequestAbstractType request) throws ParsingException { if (startElement == null) throw logger.parserNullStartElement(); String elementName = StaxParserUtil.getStartElementName(startElement); if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); NameIDType issuer = new NameIDType(); issuer.setValue(StaxParserUtil.getElementText(xmlEventReader)); request.setIssuer(issuer); } else if (JBossSAMLConstants.SIGNATURE.get().equals(elementName)) { request.setSignature(StaxParserUtil.getDOMElement(xmlEventReader)); } }
/** * Given a user name, create a {@code SubjectType} that can then be inserted into an assertion * * @param userName * * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
protected void parseCommonElements(StartElement startElement, XMLEventReader xmlEventReader, RequestAbstractType request) throws ParsingException { if (startElement == null) throw logger.parserNullStartElement(); String elementName = StaxParserUtil.getStartElementName(startElement); if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); NameIDType issuer = new NameIDType(); issuer.setValue(StaxParserUtil.getElementText(xmlEventReader)); request.setIssuer(issuer); } else if (JBossSAMLConstants.SIGNATURE.get().equals(elementName)) { request.setSignature(StaxParserUtil.getDOMElement(xmlEventReader)); } }
/** * Create a Logout Request * * @param issuer * * @return * * @throws ConfigurationException */ public LogoutRequestType createLogoutRequest(String issuer) throws ConfigurationException { LogoutRequestType lrt = new LogoutRequestType(IDGenerator.create("ID_"), XMLTimeUtil.getIssueInstant()); // Create an issuer NameIDType issuerNameID = new NameIDType(); issuerNameID.setValue(issuer); lrt.setIssuer(issuerNameID); return lrt; }
protected void parseCommonElements(StartElement startElement, XMLEventReader xmlEventReader, RequestAbstractType request) throws ParsingException { if (startElement == null) throw logger.parserNullStartElement(); String elementName = StaxParserUtil.getStartElementName(startElement); if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); NameIDType issuer = new NameIDType(); issuer.setValue(StaxParserUtil.getElementText(xmlEventReader)); request.setIssuer(issuer); } else if (JBossSAMLConstants.SIGNATURE.get().equals(elementName)) { request.setSignature(StaxParserUtil.getDOMElement(xmlEventReader)); } }