mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-04 09:42:29 +00:00
Polish gh-13648
This commit is contained in:
parent
b69939c1e5
commit
05d3beb6a8
@ -20,6 +20,7 @@ import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.springframework.security.core.SpringSecurityCoreVersion;
|
||||
import org.springframework.security.oauth2.client.registration.ClientRegistration;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@ -51,16 +52,18 @@ public final class OAuth2AuthorizedClientId implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the registration-id part of this authorized client ID
|
||||
* @since 6.2.3
|
||||
* Returns the identifier for the {@link ClientRegistration client registration}.
|
||||
* @return the identifier for the client registration
|
||||
* @since 6.3
|
||||
*/
|
||||
public String getClientRegistrationId() {
|
||||
return this.clientRegistrationId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the principalName part of this authorized client ID
|
||||
* @since 6.2.3
|
||||
* Returns the name of the End-User {@code Principal} (Resource Owner).
|
||||
* @return the name of the End-User
|
||||
* @since 6.3
|
||||
*/
|
||||
public String getPrincipalName() {
|
||||
return this.principalName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user