de.smartics.properties.jboss.extension.resources.components
Class SecurityComponent

Package class diagram package SecurityComponent
java.lang.Object
  extended by de.smartics.properties.jboss.extension.resources.components.AbstractComponent
      extended by de.smartics.properties.jboss.extension.resources.components.SecurityComponent

public final class SecurityComponent
     
     
extends AbstractComponent

Defines the security information of a configuration. This information allows to encrypt and decrypt property values.

Example XML fragment of a security element within a configuration:

 
   
   

Security Element

<security>
  <algorithm>AES</algorithm>
  <transformation>AES/ECB/PKCS5Padding</transformation>
  <!-- provider / -->
  <key>+pvrmeQCmtWmYVOZ57uuIQ==</key>
</security>


Field Summary
static org.jboss.as.controller.SimpleAttributeDefinition ALGORITHM
          The attribute that holds the security algorithm.
static org.jboss.as.controller.SimpleAttributeDefinition KEY
          The attribute that holds the security key.
static org.jboss.as.controller.SimpleAttributeDefinition PROVIDER
          The attribute that holds the security provider.
static String ROOT_ELEMENT_NAME
          The name of the configuration XML element that holds the security information.
static org.jboss.as.controller.SimpleAttributeDefinition TRANSFORMATION
          The attribute that holds the security transformation.
 
Fields inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
writeHandler
 
Constructor Summary
SecurityComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
          Default constructor.
 
Method Summary
 void apply(de.smartics.properties.spi.config.config.PropertiesConfiguration propertiesConfig, org.jboss.dmr.ModelNode model)
           
 void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model)
           
 void read(org.jboss.staxmapper.XMLExtendedStreamReader reader, org.jboss.dmr.ModelNode addOperation)
           
 void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)
           
 void write(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode config)
           
 
Methods inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
getAttribute, isAtLeastOneDefined, normalize, readAttribute, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_ELEMENT_NAME

public static final String ROOT_ELEMENT_NAME
The name of the configuration XML element that holds the security information.

The value of this constant is "security".

Constant Field Value:
"security"

ALGORITHM

public static final org.jboss.as.controller.SimpleAttributeDefinition ALGORITHM
The attribute that holds the security algorithm.


TRANSFORMATION

public static final org.jboss.as.controller.SimpleAttributeDefinition TRANSFORMATION
The attribute that holds the security transformation.


PROVIDER

public static final org.jboss.as.controller.SimpleAttributeDefinition PROVIDER
The attribute that holds the security provider.


KEY

public static final org.jboss.as.controller.SimpleAttributeDefinition KEY
The attribute that holds the security key.

Constructor Detail

SecurityComponent

public SecurityComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
Default constructor.

Method Detail

registerAttributes

public void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)

populateModel

public void populateModel(org.jboss.dmr.ModelNode operation,
                          org.jboss.dmr.ModelNode model)
                   throws org.jboss.as.controller.OperationFailedException
Throws:
org.jboss.as.controller.OperationFailedException

read

public void read(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                 org.jboss.dmr.ModelNode addOperation)
          throws XMLStreamException
Throws:
XMLStreamException

write

public void write(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
                  org.jboss.dmr.ModelNode config)
           throws XMLStreamException
Throws:
XMLStreamException

apply

public void apply(de.smartics.properties.spi.config.config.PropertiesConfiguration propertiesConfig,
                  org.jboss.dmr.ModelNode model)


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.