/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { AttributeStatement attributeStatement = (AttributeStatement) parentObject; if (childObject instanceof Attribute) { attributeStatement.getAttributes().add((Attribute) childObject); } else if (childObject instanceof EncryptedAttribute) { attributeStatement.getEncryptedAttributes().add((EncryptedAttribute) childObject); } else { super.processChildElement(parentObject, childObject); } } }
attributeStatement.getEncryptedAttributes().add( encrypter.encrypt(samlAttribute)); } catch (EncryptionException e) {
if (!attributeStatement.getEncryptedAttributes().isEmpty()) { .getEncryptedAttributes()) {
attributes.add(att); for (EncryptedAttribute att : attStatement.getEncryptedAttributes()) { Assert.notNull(context.getLocalDecrypter(), "Can't decrypt Attribute, no decrypter is set in the context"); Attribute decryptedAttribute = context.getLocalDecrypter().decrypt(att);