Skip to content

Commit 59ed6e0

Browse files
committed
Expose getters for principalName and clientRegistrationId on OAuth2AuthorizedClientId
1 parent c639d0a commit 59ed6e0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/OAuth2AuthorizedClientId.java

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,6 +50,22 @@ public OAuth2AuthorizedClientId(String clientRegistrationId, String principalNam
5050
this.principalName = principalName;
5151
}
5252

53+
/**
54+
* @return the clientRegistrationId
55+
* @since 6.2.3
56+
*/
57+
public String getClientRegistrationId() {
58+
return this.clientRegistrationId;
59+
}
60+
61+
/**
62+
* @return the principalName
63+
* @since 6.2.3
64+
*/
65+
public String getPrincipalName() {
66+
return this.principalName;
67+
}
68+
5369
@Override
5470
public boolean equals(Object obj) {
5571
if (this == obj) {

0 commit comments

Comments
 (0)