SwitchYard: Core 0.6.0.Beta2

org.switchyard.security.callback
Class SwitchYardCallbackHandler

java.lang.Object
  extended by org.switchyard.security.callback.SwitchYardCallbackHandler
All Implemented Interfaces:
CallbackHandler
Direct Known Subclasses:
CertificateCallbackHandler, NamePasswordCallbackHandler, STSIssueCallbackHandler, STSTokenCallbackHandler

public abstract class SwitchYardCallbackHandler
extends Object
implements CallbackHandler

SwitchYardCallbackHandler.

Author:
David Ward <dward@jboss.org> © 2012 Red Hat Inc.

Constructor Summary
SwitchYardCallbackHandler()
           
 
Method Summary
 Set<Credential> getCredentials()
          Gets the Credentials.
 Map<String,String> getProperties()
          Gets the Properties.
 String getProperty(String name)
          Gets a property value with the specified name.
 String getProperty(String name, boolean required)
          Gets a property value with the specified name.
 SwitchYardCallbackHandler setCredentials(Set<Credential> credentials)
          Sets the Credentials.
 SwitchYardCallbackHandler setProperties(Map<String,String> properties)
          Sets the Properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.security.auth.callback.CallbackHandler
handle
 

Constructor Detail

SwitchYardCallbackHandler

public SwitchYardCallbackHandler()
Method Detail

getProperties

public Map<String,String> getProperties()
Gets the Properties.

Returns:
the Properties

getProperty

public String getProperty(String name)
Gets a property value with the specified name.

Parameters:
name - the specified name
Returns:
the property value, or null if not set

getProperty

public String getProperty(String name,
                          boolean required)
Gets a property value with the specified name.

Parameters:
name - the specified name
required - if the property is required to have been set
Returns:
the property value

setProperties

public SwitchYardCallbackHandler setProperties(Map<String,String> properties)
Sets the Properties.

Parameters:
properties - the Properties
Returns:
this instance (useful for chaining)

getCredentials

public Set<Credential> getCredentials()
Gets the Credentials.

Returns:
the Credentials

setCredentials

public SwitchYardCallbackHandler setCredentials(Set<Credential> credentials)
Sets the Credentials.

Parameters:
credentials - the Credentials
Returns:
this instance (useful for chaining)

SwitchYard: Core 0.6.0.Beta2

JBoss by Red Hat