Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
8a5334c8
Commit
8a5334c8
authored
Apr 15, 2021
by
michael.simon
Browse files
add even more possibilities to retrieve encrypted key
parent
b937ff7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-service/src/main/java/edu/kit/scc/webreg/service/saml/Saml2AssertionService.java
View file @
8a5334c8
...
...
@@ -38,6 +38,7 @@ import org.opensaml.xmlsec.encryption.support.ChainingEncryptedKeyResolver;
import
org.opensaml.xmlsec.encryption.support.DecryptionException
;
import
org.opensaml.xmlsec.encryption.support.EncryptedKeyResolver
;
import
org.opensaml.xmlsec.encryption.support.InlineEncryptedKeyResolver
;
import
org.opensaml.xmlsec.encryption.support.SimpleKeyInfoReferenceEncryptedKeyResolver
;
import
org.opensaml.xmlsec.encryption.support.SimpleRetrievalMethodEncryptedKeyResolver
;
import
org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver
;
import
org.opensaml.xmlsec.keyinfo.impl.StaticKeyInfoCredentialResolver
;
...
...
@@ -242,6 +243,8 @@ public class Saml2AssertionService {
list
.
add
(
new
InlineEncryptedKeyResolver
());
list
.
add
(
new
EncryptedElementTypeEncryptedKeyResolver
());
list
.
add
(
new
SimpleRetrievalMethodEncryptedKeyResolver
());
list
.
add
(
new
SimpleKeyInfoReferenceEncryptedKeyResolver
());
list
.
add
(
new
SimpleRetrievalMethodEncryptedKeyResolver
());
ChainingEncryptedKeyResolver
encryptionKeyResolver
=
new
ChainingEncryptedKeyResolver
(
list
);
// At this point, we have some missing methods to get the encrypted Key out of the xml
// This seems to be necessary with some IDPs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment