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.TokengetAccessToken()GrantedAuthority[]getAuthorities()BitbucketUsergetBitbucketUser()ObjectgetCredentials()StringgetName()ObjectgetPrincipal()-
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:
getAuthoritiesin interfaceAuthentication- Overrides:
getAuthoritiesin 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:
getNamein interfacePrincipal- Overrides:
getNamein classAbstractAuthenticationToken
-
getBitbucketUser
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketUser getBitbucketUser()
-
-