Package org.jenkinsci.plugins
Class BitbucketAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.jenkinsci.plugins.BitbucketAuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class BitbucketAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketAuthenticationToken(org.scribe.model.Token accessToken, String apiKey, String apiSecret) -
Method Summary
Modifier and TypeMethodDescriptionorg.scribe.model.TokenCollection<org.springframework.security.core.GrantedAuthority>getName()Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
BitbucketAuthenticationToken
-
-
Method Details
-
getAuthorities
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.Authentication- Overrides:
getAuthoritiesin classorg.springframework.security.authentication.AbstractAuthenticationToken
-
getAccessToken
public org.scribe.model.Token getAccessToken()- Returns:
- the accessToken
-
getCredentials
-
getPrincipal
-
getName
-
getBitbucketUser
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketUser getBitbucketUser()
-