Package org.jenkinsci.plugins
Class BitbucketAuthenticationToken
- java.lang.Object
-
- org.acegisecurity.providers.AbstractAuthenticationToken
-
- org.jenkinsci.plugins.BitbucketAuthenticationToken
-
- All Implemented Interfaces:
Serializable
,Principal
,Authentication
public class BitbucketAuthenticationToken extends AbstractAuthenticationToken
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BitbucketAuthenticationToken(org.scribe.model.Token accessToken, String apiKey, String apiSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.scribe.model.Token
getAccessToken()
GrantedAuthority[]
getAuthorities()
BitbucketUser
getBitbucketUser()
Object
getCredentials()
String
getName()
Object
getPrincipal()
-
Methods inherited from class org.acegisecurity.providers.AbstractAuthenticationToken
equals, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.acegisecurity.Authentication
toSpring
-
-
-
-
Method Detail
-
getAuthorities
public GrantedAuthority[] getAuthorities()
- Specified by:
getAuthorities
in interfaceAuthentication
- Overrides:
getAuthorities
in classAbstractAuthenticationToken
-
getAccessToken
public org.scribe.model.Token getAccessToken()
- Returns:
- the accessToken
-
getCredentials
public Object getCredentials()
-
getPrincipal
public Object getPrincipal()
-
getName
public String getName()
- Specified by:
getName
in interfacePrincipal
- Overrides:
getName
in classAbstractAuthenticationToken
-
getBitbucketUser
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketUser getBitbucketUser()
-
-