Change phoneNumberVerified with type Boolean
Closes: gh-11315
This commit is contained in:
parent
ad19fc1330
commit
e28fcbfbbe
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -248,11 +248,23 @@ public class OidcUserInfo implements StandardClaimAccessor, Serializable {
|
||||||
* Use this verified-phone-number indicator in the resulting {@link OidcUserInfo}
|
* Use this verified-phone-number indicator in the resulting {@link OidcUserInfo}
|
||||||
* @param phoneNumberVerified The verified-phone-number indicator to use
|
* @param phoneNumberVerified The verified-phone-number indicator to use
|
||||||
* @return the {@link Builder} for further configurations
|
* @return the {@link Builder} for further configurations
|
||||||
|
* @deprecated Use {@link Builder#phoneNumberVerified(Boolean)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Builder phoneNumberVerified(String phoneNumberVerified) {
|
public Builder phoneNumberVerified(String phoneNumberVerified) {
|
||||||
return this.claim(StandardClaimNames.PHONE_NUMBER_VERIFIED, phoneNumberVerified);
|
return this.claim(StandardClaimNames.PHONE_NUMBER_VERIFIED, phoneNumberVerified);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this verified-phone-number indicator in the resulting {@link OidcUserInfo}
|
||||||
|
* @param phoneNumberVerified The verified-phone-number indicator to use
|
||||||
|
* @return the {@link Builder} for further configurations
|
||||||
|
* @since 5.8
|
||||||
|
*/
|
||||||
|
public Builder phoneNumberVerified(Boolean phoneNumberVerified) {
|
||||||
|
return this.claim(StandardClaimNames.PHONE_NUMBER_VERIFIED, phoneNumberVerified);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this preferred username in the resulting {@link OidcUserInfo}
|
* Use this preferred username in the resulting {@link OidcUserInfo}
|
||||||
* @param preferredUsername The preferred username to use
|
* @param preferredUsername The preferred username to use
|
||||||
|
|
Loading…
Reference in New Issue