|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.security.keyinfo.StaticKeyInfoGenerator
public class StaticKeyInfoGenerator
Implementation of KeyInfoGenerator which always returns static KeyInfo data.
Note that the argument to generate(Credential) is not used in generating the new KeyInfo,
and so may be null.
If the original KeyInfo that was passed to this instance is already the child of some other
XMLObject at the time generate(Credential) is called, then a newly constructed KeyInfo
object will be returned that contains the same data as the original. Otherwise, the original
KeyInfo instance is returned directly.
| Constructor Summary | |
|---|---|
StaticKeyInfoGenerator(KeyInfo newKeyInfo)
Constructor. |
|
| Method Summary | |
|---|---|
KeyInfo |
generate(Credential credential)
Generate a new KeyInfo object based on keying material and other information within a credential. |
KeyInfo |
getKeyInfo()
Get the static KeyInfo object held by this generator. |
void |
setKeyInfo(KeyInfo newKeyInfo)
Set the static KeyInfo object held by this generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticKeyInfoGenerator(KeyInfo newKeyInfo)
newKeyInfo - the KeyInfo used as the basis to return new KeyInfo objects from this generator| Method Detail |
|---|
public KeyInfo generate(Credential credential)
throws SecurityException
generate in interface KeyInfoGeneratorcredential - the credential containing keying material and possibly other information
SecurityException - thrown if there is any error generating the new KeyInfo from the credentialpublic KeyInfo getKeyInfo()
public void setKeyInfo(KeyInfo newKeyInfo)
newKeyInfo - the new KeyInfo object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||