Class SkeinParameters.Builder

    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(java.util.Hashtable paramsMap)
    • Method Detail

      • setPersonalisation

        public SkeinParameters.Builder setPersonalisation​(java.util.Date date,
                                                          java.lang.String emailAddress,
                                                          java.lang.String distinguisher)
        Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification.

        The format is YYYYMMDD email@address distinguisher, encoded to a byte sequence using UTF-8 encoding.

        Parameters:
        date - the date the personalised application of the Skein was defined.
        emailAddress - the email address of the creation of the personalised application.
        distinguisher - an arbitrary personalisation string distinguishing the application.
        Returns:
        the current builder.
      • setPersonalisation

        public SkeinParameters.Builder setPersonalisation​(java.util.Date date,
                                                          java.util.Locale dateLocale,
                                                          java.lang.String emailAddress,
                                                          java.lang.String distinguisher)
        Implements the recommended personalisation format for Skein defined in Section 4.11 of the Skein 1.3 specification. You may need to use this method if the default locale doesn't use a Gregorian calender so that the GeneralizedTime produced is compatible implementations.

        The format is YYYYMMDD email@address distinguisher, encoded to a byte sequence using UTF-8 encoding.

        Parameters:
        date - the date the personalised application of the Skein was defined.
        dateLocale - locale to be used for date interpretation.
        emailAddress - the email address of the creation of the personalised application.
        distinguisher - an arbitrary personalisation string distinguishing the application.
        Returns:
        the current builder.