Class OpenIDConnectIdP
java.lang.Object
com.tremolosecurity.idp.providers.OpenIDConnectIdP
- All Implemented Interfaces:
IdentityProvider,ServletMethods
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUserSession(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) voiddoDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voiddoHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voiddoOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voiddoPut(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) org.jose4j.jwt.JwtClaimsgenerateClaims(AuthInfo user, ConfigManager cfg, String trustName, String urlOfRequest, jakarta.servlet.http.HttpServletRequest request) org.jose4j.jws.JsonWebSignaturegenerateJWS(org.jose4j.jwt.JwtClaims claims) getSessionByAccessToken(String accessToken) getSessionByRefreshToken(String refreshToken) voidinit(String idpName, jakarta.servlet.ServletContext ctx, HashMap<String, Attribute> init, HashMap<String, HashMap<String, Attribute>> trustCfg, MapIdentity mapper) voidremoveAllSessions(OidcSessionState session) voidremoveSession(OidcSessionState oidcSession) voidsendErrorCode(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) voidupdateToken(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:
IOExceptionjakarta.servlet.ServletException
-
doDelete
public void doDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doDeletein interfaceServletMethods- Throws:
IOExceptionjakarta.servlet.ServletException
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doGetin interfaceServletMethods- Throws:
IOExceptionjakarta.servlet.ServletException
-
doHead
public void doHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doHeadin interfaceServletMethods- Throws:
IOExceptionjakarta.servlet.ServletException
-
doOptions
public void doOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doOptionsin interfaceServletMethods- Throws:
IOExceptionjakarta.servlet.ServletException
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
doPostin interfaceServletMethods- Throws:
IOExceptionjakarta.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:
UnsupportedEncodingExceptionIOExceptionjakarta.servlet.ServletExceptionMalformedURLException
-
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:
UnsupportedEncodingExceptionIOExceptionjakarta.servlet.ServletExceptionMalformedURLException
-
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:
doPutin interfaceServletMethods- Throws:
IOExceptionjakarta.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.JoseExceptioncom.novell.ldap.LDAPExceptionProvisioningExceptionMalformedURLException
-
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.JoseExceptioncom.novell.ldap.LDAPExceptionProvisioningExceptionMalformedURLException
-
removeSession
-
getTrusts
-
getSessionByRefreshToken
- Throws:
Exception
-
getSessionByAccessToken
- Throws:
Exception
-
updateToken
- Throws:
Exception
-
decryptClientSecret
-
getJwtSigningKeyName
-
clearExpiredSessions
public void clearExpiredSessions() -
getUidAttributeFromMap
-
getMapper
-
getAuthChainToAmr
-
getAmrToAuthChain
-
removeAllSessions
- Throws:
Exception
-