private Element createSingleLogOutForCastleAsIDP(String binding) throws Exception {
  String entityID=idmClient.getEntityID(tenantName);
  String ssoLoc=convertToIPV6ShortForm(entityID);
  if (ssoLoc == null) {
    ssoLoc=tenantName;
  }
  String sloLoc=ssoLoc.replaceAll("/Metadata/","/SLO/");
  Element slosEle=createEndPoint(SAMLNames.SLOS,binding,sloLoc,null);
  return slosEle;
}

private Element createSingleLogOutForCastleAsIDP ( String binding ) throws Exception { String entityID = idmClient . getEntityID ( tenantName ) ; String ssoLoc = convertToIPV6ShortForm ( entityID ) ; if ( ssoLoc == null ) { ssoLoc = tenantName ; } String sloLoc = ssoLoc . replaceAll ( "/Metadata/" , "/SLO/" ) ; Element slosEle = createEndPoint ( SAMLNames . SLOS , binding , sloLoc , null ) ; return slosEle ; }
return singlelogoutservice element for castle as idp .
