Class UsernameTokenBuilderImpl

java.lang.Object
org.projecthusky.xua.wssecurity.impl.UsernameTokenBuilderImpl
All Implemented Interfaces:
SecurityObjectBuilder<org.opensaml.soap.wssecurity.UsernameToken,UsernameToken>, UsernameTokenBuilder

public class UsernameTokenBuilderImpl extends Object implements UsernameTokenBuilder, SecurityObjectBuilder<org.opensaml.soap.wssecurity.UsernameToken,UsernameToken>
Class implementing the corresponding interface for UsernameToken building.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a concrete instance of UsernameToken with setted params. Erstellt die konkrete Instanz von UsernameToken mit den gesetzten Parametern.
    create(org.opensaml.soap.wssecurity.UsernameToken aInternalObject)
    Method to create an instance of type T. Methode um eine Instanc des Typs T zu erstellen.
    nonce(String aNonce)
    Method to set the nonce (randonm value) of the UsernameToken to be build. Methode um den Nonce (Zufallswert) dem UsernameToken hinzuzufügen.
    password(String aPassword)
    Method to set the password of the UsernameToken to be build. Methode um das Passwort dem UsernameToken hinzuzufügen.
    username(String aUsername)
    Method to set the username of the UsernameToken to be build. Methode um den Usernamen dem UsernameToken hinzuzufügen.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UsernameTokenBuilderImpl

      public UsernameTokenBuilderImpl()
      Default constructor.
  • Method Details

    • create

      public UsernameToken create()
      Description copied from interface: UsernameTokenBuilder
      Creates a concrete instance of UsernameToken with setted params.
      Erstellt die konkrete Instanz von UsernameToken mit den gesetzten Parametern.
      Specified by:
      create in interface UsernameTokenBuilder
      Returns:
      a new instance of UsernameToken with the params set
      eine neue Instanz von UsernameToken mit den gesetzten Parametern
    • create

      public UsernameToken create(org.opensaml.soap.wssecurity.UsernameToken aInternalObject)
      Description copied from interface: SecurityObjectBuilder
      Method to create an instance of type T.
      Methode um eine Instanc des Typs T zu erstellen.
      Specified by:
      create in interface SecurityObjectBuilder<org.opensaml.soap.wssecurity.UsernameToken,UsernameToken>
      Parameters:
      aInternalObject -
      the internal wrapped object of type T
      das Innere, gewrappte Object vom Typ T
      Returns:
      the Object ot the type U
      the instance of type U
      die erstellte Instanz vom Typ U
    • nonce

      public UsernameTokenBuilder nonce(String aNonce)
      Description copied from interface: UsernameTokenBuilder
      Method to set the nonce (randonm value) of the UsernameToken to be build.
      Methode um den Nonce (Zufallswert) dem UsernameToken hinzuzufügen.
      Specified by:
      nonce in interface UsernameTokenBuilder
      Parameters:
      aNonce -
      the nonce to be set
      der Nonce der gesetzt werden soll
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders
    • password

      public UsernameTokenBuilder password(String aPassword)
      Description copied from interface: UsernameTokenBuilder
      Method to set the password of the UsernameToken to be build.
      Methode um das Passwort dem UsernameToken hinzuzufügen.
      Specified by:
      password in interface UsernameTokenBuilder
      Parameters:
      aPassword -
      the password to be set
      das Passwort das gesetzt werden soll
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders
    • username

      public UsernameTokenBuilder username(String aUsername)
      Description copied from interface: UsernameTokenBuilder
      Method to set the username of the UsernameToken to be build.
      Methode um den Usernamen dem UsernameToken hinzuzufügen.
      Specified by:
      username in interface UsernameTokenBuilder
      Parameters:
      aUsername -
      the username to be set
      der Usernamen der gesetzt werden soll
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders