单点注销 RC1

This commit is contained in:
Crystal.Sea
2020-10-26 22:31:42 +08:00
parent 68d72e2dd4
commit f635ed358c
14 changed files with 319 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
package org.maxkey.authz.singlelogout;
public class CasSingleLogout extends SingleLogout{
public String logoutRequestMessage=
"<samlp:LogoutRequest xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" ID=\"%s\" Version=\"2.0\" "
+ "IssueInstant=\"%s\"><saml:NameID xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\">%s"
+ "</saml:NameID><samlp:SessionIndex>%s</samlp:SessionIndex></samlp:LogoutRequest>";
@Override
public void sendRequest() {
// TODO Auto-generated method stub
}
}

View File

@@ -0,0 +1,16 @@
package org.maxkey.authz.singlelogout;
public class DefaultSingleLogout extends SingleLogout{
public String logoutRequestMessage=
"<samlp:LogoutRequest xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" ID=\"%s\" Version=\"2.0\" "
+ "IssueInstant=\"%s\"><saml:NameID xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\">%s"
+ "</saml:NameID><samlp:SessionIndex>%s</samlp:SessionIndex></samlp:LogoutRequest>";
@Override
public void sendRequest() {
// TODO Auto-generated method stub
}
}

View File

@@ -0,0 +1,18 @@
package org.maxkey.authz.singlelogout;
public class LogoutType {
/**
* For no SLO.
*/
public static int NONE = 0;
/**
* For back channel SLO.
*/
public static int BACK_CHANNEL = 1;
/**
* For front channel SLO.
*/
public static int FRONT_CHANNEL = 2;
}

View File

@@ -0,0 +1,7 @@
package org.maxkey.authz.singlelogout;
public abstract class SingleLogout {
public abstract void sendRequest() ;
}