public class

ScretKeyInfoProvider

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

Class Overview

Generates the Key Info using a secret key provided by the User

Summary

Fields
private CanonicalizationAlgorithm canonicalizationAlgorithm
private String secretKey
private String secretKeyAlgorithm
Public Constructors
ScretKeyInfoProvider(String secretKey, String secretKeyAlgorithm, CanonicalizationAlgorithm canonicalizationAlgorithm)
Constructor
Public Methods
KeyInfo getKeyInfo()
Key getSecretKey()
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 String secretKey

private String secretKeyAlgorithm

Public Constructors

public ScretKeyInfoProvider (String secretKey, String secretKeyAlgorithm, CanonicalizationAlgorithm canonicalizationAlgorithm)

Constructor

Parameters
secretKey The password provided by the user
secretKeyAlgorithm The algorithm used to encode the key
canonicalizationAlgorithm The canonicalization Algorithm

Public Methods

public KeyInfo getKeyInfo ()

public Key getSecretKey ()

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.