mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-04 01:32:14 +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 java.util.Objects;
|
||||||
|
|
||||||
import org.springframework.security.core.SpringSecurityCoreVersion;
|
import org.springframework.security.core.SpringSecurityCoreVersion;
|
||||||
|
import org.springframework.security.oauth2.client.registration.ClientRegistration;
|
||||||
import org.springframework.util.Assert;
|
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
|
* Returns the identifier for the {@link ClientRegistration client registration}.
|
||||||
* @since 6.2.3
|
* @return the identifier for the client registration
|
||||||
|
* @since 6.3
|
||||||
*/
|
*/
|
||||||
public String getClientRegistrationId() {
|
public String getClientRegistrationId() {
|
||||||
return this.clientRegistrationId;
|
return this.clientRegistrationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the principalName part of this authorized client ID
|
* Returns the name of the End-User {@code Principal} (Resource Owner).
|
||||||
* @since 6.2.3
|
* @return the name of the End-User
|
||||||
|
* @since 6.3
|
||||||
*/
|
*/
|
||||||
public String getPrincipalName() {
|
public String getPrincipalName() {
|
||||||
return this.principalName;
|
return this.principalName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user