Class PgpSignatoryProvider

    • Constructor Detail

      • PgpSignatoryProvider

        public PgpSignatoryProvider()
    • Method Detail

      • getDefaultSignatory

        public PgpSignatory getDefaultSignatory​(Project project)
        Description copied from interface: SignatoryProvider

        Attempts to create a signatory for the project that will be used everywhere something is to be signed and an explicit signatory has not been set (for the task/operation).

        This may be called multiple times and the implementor is free to return a different instance if the project state has changed in someway that influences the default signatory.

        Specified by:
        getDefaultSignatory in interface SignatoryProvider<PgpSignatory>
        Parameters:
        project - The project which the signatory is for
        Returns:
        The signatory, or null if there is insufficient information available to create one.
      • getSignatory

        public PgpSignatory getSignatory​(String name)
        Description copied from interface: SignatoryProvider
        Retrieves the signatory with the given name.
        Specified by:
        getSignatory in interface SignatoryProvider<PgpSignatory>
        Parameters:
        name - The desired signatory's name.
        Returns:
        The signatory with the given name if found, or null if no signatory is found with this name.