|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.encryption.AbstractEncryptedKeyResolver
org.opensaml.xml.encryption.SimpleKeyInfoReferenceEncryptedKeyResolver
public class SimpleKeyInfoReferenceEncryptedKeyResolver
Implementation of EncryptedKeyResolver which finds EncryptedKey elements by dereferencing
KeyInfoReference children of the KeyInfo of the EncryptedData
context.
The URI attribute value must be a same-document fragment identifier (via ID attribute).
Processing of external resources is not supported. Furthermore, the target of the reference must itself
contain either an EncryptedKey or a subsequent KeyInfoReference, up to a depth limit.
Other forms of resolution cannot be mixed together with this one.
| Field Summary | |
|---|---|
private int |
depthLimit
Number of times to follow a reference before failing. |
private Logger |
log
Class logger. |
| Constructor Summary | |
|---|---|
SimpleKeyInfoReferenceEncryptedKeyResolver()
Constructor. |
|
| Method Summary | |
|---|---|
protected KeyInfo |
dereferenceURI(KeyInfoReference ref)
Dereference the URI attribute of the specified retrieval method into a KeyInfo. |
int |
getDepthLimit()
Gets the reference depth limit. |
Iterable<EncryptedKey> |
resolve(EncryptedData encryptedData)
Resolve the EncryptedKey elements containing the data encryption key used to encrypt the specified EncryptedData element. |
protected Iterable<EncryptedKey> |
resolveKeyInfo(KeyInfo keyInfo,
int limit)
Turn a KeyInfo into an EncryptedKey collection. |
void |
setDepthLimit(int limit)
Sets the reference depth limit, to a minimum of 1. |
| Methods inherited from class org.opensaml.xml.encryption.AbstractEncryptedKeyResolver |
|---|
getRecipients, matchCarriedKeyName, matchDataReference, matchRecipient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Logger log
private int depthLimit
| Constructor Detail |
|---|
SimpleKeyInfoReferenceEncryptedKeyResolver()
| Method Detail |
|---|
public int getDepthLimit()
public void setDepthLimit(int limit)
limit - limit to setpublic Iterable<EncryptedKey> resolve(EncryptedData encryptedData)
encryptedData - the EncryptedData element context in which to resolve
protected Iterable<EncryptedKey> resolveKeyInfo(KeyInfo keyInfo,
int limit)
keyInfo - KeyInfo to processlimit - depth of references to follow
protected KeyInfo dereferenceURI(KeyInfoReference ref)
ref - the KeyInfoReference to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||