Created
March 1, 2016 19:04
-
-
Save mburrows02/1fef76355d66cdfad619 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameIDBuilder nameIDBuilder = new NameIDBuilder(); | |
NameID nameID = nameIDBuilder.buildObject(); | |
nameID.setSPNameQualifier(spEntityId); | |
nameID.setValue(pai); | |
nameID.setFormat("urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"); | |
if (encryptionService != null) { | |
EncryptedID encryptedNameID = encryptionService.encryptNameID(nameID); | |
logoutRequest.setEncryptedID(encryptedNameID); | |
} else { | |
logoutRequest.setNameID(nameID); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment