Interface SDesFactory

  • All Known Implementing Classes:
    SrtpSDesFactory

    public interface SDesFactory
    Interface to create instances of specific grammar
    Author:
    Ingo Bauersachs
    • Method Detail

      • createCryptoSuite

        CryptoSuite createCryptoSuite​(java.lang.String suite)
        Creates a crypto suite instance for the grammar implementing this interface.
        Parameters:
        suite - The suite name that defines the cryptographic parameters.
        Returns:
        A crypto suite instance based on the supplied suite name.
      • createKeyParam

        KeyParam createKeyParam​(java.lang.String keyParam)
        Creates a key parameter instance for the grammar implementing this interface.
        Parameters:
        keyParam - The textual representation of the key parameter field.
        Returns:
        The parsed key parameter.
      • createKeyParamArray

        KeyParam[] createKeyParamArray​(int size)
        Utility method to create a typed array of KeyParameters.
        Parameters:
        size - The size of the array to create.
        Returns:
        KeyParam array of the specified size.
      • createSessionParam

        SessionParam createSessionParam​(java.lang.String sessionParam)
        Creates a session parameter instance for the grammar implementing this interface.
        Parameters:
        sessionParam - The textual representation of the session parameter.
        Returns:
        The parsed session parameter.
      • createSessionParamArray

        SessionParam[] createSessionParamArray​(int size)
        Utility method to create a typed array of SessionParams.
        Parameters:
        size - The size of the array to create.
        Returns:
        SessionParam array of the specified size.
      • createCryptoAttribute

        CryptoAttribute createCryptoAttribute()
        Creates an empty crypto attribute for the grammar implementing this interface.
        Returns:
        Empty crypto attribute to be filled by a parser.
      • setRandomGenerator

        void setRandomGenerator​(java.util.Random r)
        Sets the random number generator to be used for generating the SDES keys.
        Parameters:
        r - The random number generator.