@Test public void getScopesReturnsAllScopes() { List<String> scopesList = new ArrayList<>(); scopesList.add(scopeWrite); scopesList.add(scopeRead); scopesList.add(scopeOther); claimsSetBuilder.claim("scope", scopesList); token = createToken(claimsSetBuilder); Collection<String> scopes = token.getScopes(); assertThat(scopes.size(), is(3)); assertThat(scopes, hasItem(scopeRead)); assertThat(scopes, hasItem(scopeWrite)); assertThat(scopes, hasItem(scopeOther)); }
@Override public Collection<String> getScopes() { List<String> scopesList = getClaimAsStringList(TokenClaims.CLAIM_SCOPES); return scopesList != null ? scopesList : Collections.emptyList(); }
XsuaaToken extends Jwt implements Token { @Override public Collection<String> getScopes() { List<String> scopesList = getClaimAsStringList(TokenClaims.CLAIM_SCOPES); return scopesList != null ? scopesList : Collections.emptyList(); } }
XsuaaToken extends Jwt implements Token { @Override public Collection<String> getScopes() { List<String> scopesList = getClaimAsStringList(TokenClaims.CLAIM_SCOPES); return scopesList != null ? scopesList : Collections.emptyList(); } protected  XsuaaToken(Jwt jwt); }
XsuaaToken extends Jwt implements Token { @Override public Collection<String> getScopes() { List<String> scopesList = getClaimAsStringList(TokenClaims.CLAIM_SCOPES); return scopesList != null ? scopesList : Collections.emptyList(); } protected  XsuaaToken(Jwt jwt); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Date getExpirationDate(); @Override Instant getExpiration(); @Override String getPassword(); @Override String getUsername(); @Override boolean isAccountNonExpired(); @Override boolean isAccountNonLocked(); @Override boolean isCredentialsNonExpired(); @Override boolean isEnabled(); @Nullable static String getUniquePrincipalName(String origin, String userLoginName); @Override @Nullable String getLogonName(); @Override @Nullable String getClientId(); @Override String getGivenName(); @Override @Nullable String getFamilyName(); @Override String getEmail(); @Override String getOrigin(); @Override String getGrantType(); @Override String getSubaccountId(); @Override String getZoneId(); @Override String getSubdomain(); @Override String toString(); @Nullable @Override String[] getXSUserAttribute(String attributeName); @Override String getAdditionalAuthAttribute(String attributeName); @Override String getCloneServiceInstanceId(); @Override String getAppToken(); @Override Collection<String> getScopes(); boolean hasClaim(String claim); }
XsuaaToken extends Jwt implements Token { @Override public Collection<String> getScopes() { List<String> scopesList = getClaimAsStringList(TokenClaims.CLAIM_SCOPES); return scopesList != null ? scopesList : Collections.emptyList(); } protected  XsuaaToken(Jwt jwt); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Date getExpirationDate(); @Override Instant getExpiration(); @Override String getPassword(); @Override String getUsername(); @Override boolean isAccountNonExpired(); @Override boolean isAccountNonLocked(); @Override boolean isCredentialsNonExpired(); @Override boolean isEnabled(); @Nullable static String getUniquePrincipalName(String origin, String userLoginName); @Override @Nullable String getLogonName(); @Override @Nullable String getClientId(); @Override String getGivenName(); @Override @Nullable String getFamilyName(); @Override String getEmail(); @Override String getOrigin(); @Override String getGrantType(); @Override String getSubaccountId(); @Override String getZoneId(); @Override String getSubdomain(); @Override String toString(); @Nullable @Override String[] getXSUserAttribute(String attributeName); @Override String getAdditionalAuthAttribute(String attributeName); @Override String getCloneServiceInstanceId(); @Override String getAppToken(); @Override Collection<String> getScopes(); boolean hasClaim(String claim);  }