kz.gamma.cms
Class DefaultSignedAttributeTableGenerator

java.lang.Object
  extended by kz.gamma.cms.DefaultSignedAttributeTableGenerator
All Implemented Interfaces:
CMSAttributeTableGenerator

public class DefaultSignedAttributeTableGenerator
extends java.lang.Object
implements CMSAttributeTableGenerator

Default signed attributes generator.


Field Summary
private  java.util.Hashtable table
           
 
Fields inherited from interface kz.gamma.cms.CMSAttributeTableGenerator
CONTENT_TYPE, DIGEST, DIGEST_ALGORITHM_IDENTIFIER, SIGNATURE
 
Constructor Summary
DefaultSignedAttributeTableGenerator()
          Initialise to use all defaults
DefaultSignedAttributeTableGenerator(AttributeTable attributeTable)
          Initialise with some extra attributes or overrides.
 
Method Summary
protected  java.util.Hashtable createStandardAttributeTable(java.util.Map parameters)
          Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, and messageDigest.
 AttributeTable getAttributes(java.util.Map parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

private final java.util.Hashtable table
Constructor Detail

DefaultSignedAttributeTableGenerator

public DefaultSignedAttributeTableGenerator()
Initialise to use all defaults


DefaultSignedAttributeTableGenerator

public DefaultSignedAttributeTableGenerator(AttributeTable attributeTable)
Initialise with some extra attributes or overrides.

Parameters:
attributeTable - initial attribute table to use.
Method Detail

createStandardAttributeTable

protected java.util.Hashtable createStandardAttributeTable(java.util.Map parameters)
Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, and messageDigest. If the constructor using an AttributeTable was used, entries in it for contentType, signingTime, and messageDigest will override the generated ones.

Parameters:
parameters - source parameters for table generation.
Returns:
a filled in Hashtable of attributes.

getAttributes

public AttributeTable getAttributes(java.util.Map parameters)
Specified by:
getAttributes in interface CMSAttributeTableGenerator
Parameters:
parameters - source parameters
Returns:
the populated attribute table


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.