Class OAuthConsumerEntry
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<OAuthConsumerEntry>
-
- com.atlassian.bitbucket.jenkins.internal.jenkins.oauth.consumer.OAuthConsumerEntry
-
- All Implemented Interfaces:
Describable<OAuthConsumerEntry>
public class OAuthConsumerEntry extends AbstractDescribableImpl<OAuthConsumerEntry>
A wrapper class exposing getter functions from an OAuthConsumer to the UI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuthConsumerEntry.OAuthConsumerEntryDescriptor
-
Constructor Summary
Constructors Constructor Description OAuthConsumerEntry(Consumer consumer, boolean isUpdate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCallbackUrl()
String
getConsumerKey()
String
getConsumerName()
String
getConsumerSecret()
OAuthConsumerEntry.OAuthConsumerEntryDescriptor
getDescriptor()
static OAuthConsumerEntry
getOAuthConsumerForAdd()
static OAuthConsumerEntry
getOAuthConsumerForUpdate(Consumer consumer)
boolean
isCallbackUrlSet()
boolean
isUpdate()
-
-
-
Constructor Detail
-
OAuthConsumerEntry
public OAuthConsumerEntry(Consumer consumer, boolean isUpdate)
-
-
Method Detail
-
getOAuthConsumerForAdd
public static OAuthConsumerEntry getOAuthConsumerForAdd()
-
getOAuthConsumerForUpdate
public static OAuthConsumerEntry getOAuthConsumerForUpdate(Consumer consumer)
-
getCallbackUrl
public String getCallbackUrl()
-
isCallbackUrlSet
public boolean isCallbackUrlSet()
-
getConsumerKey
public String getConsumerKey()
-
getConsumerName
public String getConsumerName()
-
getConsumerSecret
public String getConsumerSecret()
-
isUpdate
public boolean isUpdate()
-
getDescriptor
public OAuthConsumerEntry.OAuthConsumerEntryDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<OAuthConsumerEntry>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<OAuthConsumerEntry>
-
-