apps
This commit is contained in:
@@ -78,7 +78,7 @@ public class AuthnResponseGenerator {
|
||||
attributeMap);
|
||||
|
||||
//Encrypt
|
||||
if(ConstsBoolean.isTrue(saml20Details.getEncrypted())) {
|
||||
if(ConstsBoolean.isYes(saml20Details.getEncrypted())) {
|
||||
logger.info("begin to encrypt assertion");
|
||||
try {
|
||||
// Assume this contains a recipient's RSA public
|
||||
|
||||
@@ -84,12 +84,12 @@ public class SubjectGenerator {
|
||||
nameIdValue = nameIdValue + saml20Details.getNameIdSuffix();
|
||||
}
|
||||
|
||||
if(saml20Details.getNameIdConvert()==0) {
|
||||
|
||||
}else if(saml20Details.getNameIdConvert()==1) {
|
||||
if(saml20Details.getNameIdConvert().equalsIgnoreCase("uppercase")) {
|
||||
nameIdValue = nameIdValue.toUpperCase();
|
||||
}else if(saml20Details.getNameIdConvert()==1) {
|
||||
}else if(saml20Details.getNameIdConvert().equalsIgnoreCase("lowercase")) {
|
||||
nameIdValue = nameIdValue.toLowerCase();
|
||||
}else {
|
||||
//do nothing
|
||||
}
|
||||
|
||||
NameID nameID =builderNameID(nameIdValue,assertionConsumerURL);
|
||||
|
||||
Reference in New Issue
Block a user