Class OpenIDConnectIdP
java.lang.Object
com.tremolosecurity.idp.providers.OpenIDConnectIdP
- All Implemented Interfaces:
IdentityProvider
,ServletMethods
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createUserSession
(jakarta.servlet.http.HttpServletRequest request, String clientID, UrlHolder holder, OpenIDConnectTrust trust, String dn, ConfigManager cfgMgr, OpenIDConnectAccessToken access, String nonce, String authChain) createUserSession
(jakarta.servlet.http.HttpServletRequest request, String clientID, UrlHolder holder, OpenIDConnectTrust trust, String dn, ConfigManager cfgMgr, OpenIDConnectAccessToken access, String nonce, String authChain, org.json.simple.JSONObject existingClaims, org.json.simple.JSONObject actor) decryptClientSecret
(String keyName, String encryptedClientSecret) void
doDelete
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
doGet
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
doHead
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
doOptions
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
doPost
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
doPut
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) org.jose4j.jwt.JwtClaims
generateClaims
(AuthInfo user, ConfigManager cfg, String trustName, String urlOfRequest, jakarta.servlet.http.HttpServletRequest request) org.jose4j.jws.JsonWebSignature
generateJWS
(org.jose4j.jwt.JwtClaims claims) getSessionByAccessToken
(String accessToken) getSessionByRefreshToken
(String refreshToken) void
init
(String idpName, jakarta.servlet.ServletContext ctx, HashMap<String, Attribute> init, HashMap<String, HashMap<String, Attribute>> trustCfg, MapIdentity mapper) void
removeAllSessions
(OidcSessionState session) void
removeSession
(OidcSessionState oidcSession) void
sendErrorCode
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, int code) storeSession
(OpenIDConnectAccessToken access, ApplicationType app, String codeTokenKeyName, String clientID, String userDN, String sessionID) void
updateToken
(OidcSessionState session)
-
Field Details
-
UNISON_OPENIDCONNECT_IDPS
- See Also:
-
UNISON_SESSION_OIDC_ACCESS_TOKEN
- See Also:
-
UNISON_SESSION_OIDC_ID_TOKEN
- See Also:
-
STS_TRANSACTION
- See Also:
-
-
Constructor Details
-
OpenIDConnectIdP
public OpenIDConnectIdP()
-
-
Method Details
-
sendErrorCode
public void sendErrorCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, int code) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
doDelete
public void doDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doDelete
in interfaceServletMethods
- Throws:
IOException
jakarta.servlet.ServletException
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doGet
in interfaceServletMethods
- Throws:
IOException
jakarta.servlet.ServletException
-
doHead
public void doHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doHead
in interfaceServletMethods
- Throws:
IOException
jakarta.servlet.ServletException
-
doOptions
public void doOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doOptions
in interfaceServletMethods
- Throws:
IOException
jakarta.servlet.ServletException
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doPost
in interfaceServletMethods
- Throws:
IOException
jakarta.servlet.ServletException
-
createUserSession
public OidcSessionState createUserSession(jakarta.servlet.http.HttpServletRequest request, String clientID, UrlHolder holder, OpenIDConnectTrust trust, String dn, ConfigManager cfgMgr, OpenIDConnectAccessToken access, String nonce, String authChain) throws UnsupportedEncodingException, IOException, jakarta.servlet.ServletException, MalformedURLException - Throws:
UnsupportedEncodingException
IOException
jakarta.servlet.ServletException
MalformedURLException
-
createUserSession
public OidcSessionState createUserSession(jakarta.servlet.http.HttpServletRequest request, String clientID, UrlHolder holder, OpenIDConnectTrust trust, String dn, ConfigManager cfgMgr, OpenIDConnectAccessToken access, String nonce, String authChain, org.json.simple.JSONObject existingClaims, org.json.simple.JSONObject actor) throws UnsupportedEncodingException, IOException, jakarta.servlet.ServletException, MalformedURLException - Throws:
UnsupportedEncodingException
IOException
jakarta.servlet.ServletException
MalformedURLException
-
storeSession
public OidcSessionState storeSession(OpenIDConnectAccessToken access, ApplicationType app, String codeTokenKeyName, String clientID, String userDN, String sessionID) throws Exception - Throws:
Exception
-
doPut
public void doPut(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doPut
in interfaceServletMethods
- Throws:
IOException
jakarta.servlet.ServletException
-
init
-
getSessionStore
-
generateJWS
public org.jose4j.jws.JsonWebSignature generateJWS(org.jose4j.jwt.JwtClaims claims) throws org.jose4j.lang.JoseException, com.novell.ldap.LDAPException, ProvisioningException, MalformedURLException - Throws:
org.jose4j.lang.JoseException
com.novell.ldap.LDAPException
ProvisioningException
MalformedURLException
-
generateClaims
public org.jose4j.jwt.JwtClaims generateClaims(AuthInfo user, ConfigManager cfg, String trustName, String urlOfRequest, jakarta.servlet.http.HttpServletRequest request) throws org.jose4j.lang.JoseException, com.novell.ldap.LDAPException, ProvisioningException, MalformedURLException - Throws:
org.jose4j.lang.JoseException
com.novell.ldap.LDAPException
ProvisioningException
MalformedURLException
-
removeSession
-
getTrusts
-
getSessionByRefreshToken
- Throws:
Exception
-
getSessionByAccessToken
- Throws:
Exception
-
updateToken
- Throws:
Exception
-
decryptClientSecret
-
getJwtSigningKeyName
-
clearExpiredSessions
public void clearExpiredSessions() -
getUidAttributeFromMap
-
getMapper
-
getAuthChainToAmr
-
getAmrToAuthChain
-
removeAllSessions
- Throws:
Exception
-