Class UsernamePasswordCredentialsProperties

  • All Implemented Interfaces:
    com.atlassian.bamboo.specs.api.model.EntityProperties, com.atlassian.bamboo.specs.api.model.RootEntityProperties

    @Immutable
    public final class UsernamePasswordCredentialsProperties
    extends com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties
    • Constructor Summary

      Constructors 
      Constructor Description
      UsernamePasswordCredentialsProperties​(@NotNull java.lang.String name, @Nullable com.atlassian.bamboo.specs.api.model.BambooOidProperties oid, @NotNull java.lang.String username, @Nullable java.lang.String password)  
      UsernamePasswordCredentialsProperties​(@NotNull java.lang.String name, @Nullable com.atlassian.bamboo.specs.api.model.BambooOidProperties oid, @NotNull java.lang.String username, @Nullable java.lang.String password, @Nullable com.atlassian.bamboo.specs.api.model.project.ProjectProperties project)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NotNull com.atlassian.bamboo.specs.api.model.AtlassianModuleProperties getAtlassianPlugin()  
      java.lang.String getPassword()  
      java.lang.String getUsername()  
      int hashCode()  
      void validate()  
      • Methods inherited from class com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties

        getName, getOid, getProject, humanReadableId, humanReadableType
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UsernamePasswordCredentialsProperties

        public UsernamePasswordCredentialsProperties​(@NotNull
                                                     @NotNull java.lang.String name,
                                                     @Nullable
                                                     @Nullable com.atlassian.bamboo.specs.api.model.BambooOidProperties oid,
                                                     @NotNull
                                                     @NotNull java.lang.String username,
                                                     @Nullable
                                                     @Nullable java.lang.String password)
                                              throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
        Throws:
        com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
      • UsernamePasswordCredentialsProperties

        public UsernamePasswordCredentialsProperties​(@NotNull
                                                     @NotNull java.lang.String name,
                                                     @Nullable
                                                     @Nullable com.atlassian.bamboo.specs.api.model.BambooOidProperties oid,
                                                     @NotNull
                                                     @NotNull java.lang.String username,
                                                     @Nullable
                                                     @Nullable java.lang.String password,
                                                     @Nullable
                                                     @Nullable com.atlassian.bamboo.specs.api.model.project.ProjectProperties project)
                                              throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
        Throws:
        com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
    • Method Detail

      • getAtlassianPlugin

        @NotNull
        public @NotNull com.atlassian.bamboo.specs.api.model.AtlassianModuleProperties getAtlassianPlugin()
        Specified by:
        getAtlassianPlugin in class com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties
      • getUsername

        public java.lang.String getUsername()
      • getPassword

        public java.lang.String getPassword()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties
      • validate

        public void validate()
        Specified by:
        validate in interface com.atlassian.bamboo.specs.api.model.EntityProperties
        Overrides:
        validate in class com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties