|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.credential.BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
public class BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
An implementation of KeyInfoGenerator
capable of handling the information
contained within a Credential
.
Field Summary | |
---|---|
private KeyInfoBuilder |
keyInfoBuilder
Builder for KeyInfo objects. |
private BasicKeyInfoGeneratorFactory.BasicOptions |
options
The set of options to be used by the generator. |
Constructor Summary | |
---|---|
protected |
BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator(BasicKeyInfoGeneratorFactory.BasicOptions newOptions)
Constructor. |
Method Summary | |
---|---|
KeyInfo |
generate(Credential credential)
Generate a new KeyInfo object based on keying material and other information within a credential. |
protected void |
processEntityID(KeyInfo keyInfo,
Credential credential)
Process the value of Credential.getEntityId() . |
protected void |
processKeyNames(KeyInfo keyInfo,
Credential credential)
Process the values of Credential.getKeyNames() . |
protected void |
processPublicKey(KeyInfo keyInfo,
Credential credential)
Process the value of Credential.getPublicKey() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private BasicKeyInfoGeneratorFactory.BasicOptions options
private KeyInfoBuilder keyInfoBuilder
Constructor Detail |
---|
protected BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator(BasicKeyInfoGeneratorFactory.BasicOptions newOptions)
newOptions
- the options to be used by the generatorMethod Detail |
---|
public KeyInfo generate(Credential credential) throws SecurityException
generate
in interface KeyInfoGenerator
credential
- the credential containing keying material and possibly other information
SecurityException
- thrown if there is any error generating the new KeyInfo from the credentialprotected void processKeyNames(KeyInfo keyInfo, Credential credential)
Credential.getKeyNames()
.
keyInfo
- the KeyInfo that is being builtcredential
- the Credential that is geing processedprotected void processEntityID(KeyInfo keyInfo, Credential credential)
Credential.getEntityId()
.
keyInfo
- the KeyInfo that is being builtcredential
- the Credential that is geing processedprotected void processPublicKey(KeyInfo keyInfo, Credential credential)
Credential.getPublicKey()
.
keyInfo
- the KeyInfo that is being builtcredential
- the Credential that is geing processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |