public class

KeyPairInfoProvider

extends Object
implements KeyInfoProvider
java.lang.Object
   ↳ org.mule.module.xmlsecurity.keyinfo.KeyPairInfoProvider

Class Overview

Generates a public/private key pair

Summary

Fields
private CanonicalizationAlgorithm canonicalizationAlgorithm
private KeyPair keyPair
private String keyPairAlgorithm
Public Constructors
KeyPairInfoProvider(CanonicalizationAlgorithm canonicalizationAlgorithm, String keyPairAlgorithm)
Constructor
Public Methods
KeyInfo getKeyInfo()
Key getSecretKey()
String getSignatureMethod()
SignedInfo getSignedInfo(Reference ref)
Creates the SignedInfo object that will be used to create the SignedInfo tag.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.module.xmlsecurity.keyinfo.KeyInfoProvider

Fields

private CanonicalizationAlgorithm canonicalizationAlgorithm

private KeyPair keyPair

private String keyPairAlgorithm

Public Constructors

public KeyPairInfoProvider (CanonicalizationAlgorithm canonicalizationAlgorithm, String keyPairAlgorithm)

Constructor

Parameters
canonicalizationAlgorithm The canonicalization algorithm
keyPairAlgorithm The algorithm used to create the key pair (DSA / RSA)

Public Methods

public KeyInfo getKeyInfo ()

public Key getSecretKey ()

public String getSignatureMethod ()

public SignedInfo getSignedInfo (Reference ref)

Creates the SignedInfo object that will be used to create the SignedInfo tag.

Parameters
ref The referenced object.
Returns
  • The Signed info.