You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will find all classes packaged under `com.yoti.api`
102
105
@@ -205,13 +208,21 @@ Dummy implementation without connectivity to any platform services. Can be used
205
208
Real SDK implementation that takes care of decrypting the token, fetching the user profile from Yoti servers by issuing a signed request and finally decrypting the fetched profile.
206
209
### java-sdk-spring-boot-auto-config
207
210
A module that can be used in Spring Boot applications to automatically configure the YotiClient and KeyPairSource with standard application properties.
211
+
### java-sdk-spring-security
212
+
A module that can be used in Spring applications that use Spring Security to add Yoti authentication.
208
213
209
214
## Spring Boot Auto Configuration
210
215
211
216
As a convenience, if your application happens to use Spring Boot, you can utilise the Spring Boot auto configuration module that will take care of configuring the Yoti Client and Key Pair for you based on standard application properties.
212
217
213
218
For more information and to see an example of this in use take a look at the Spring Boot Auto Configuration module and Spring Boot example in this repository.
214
219
220
+
## Spring Security Integration
221
+
222
+
If you use Spring Security you can use the `java-sdk-spring-security` module to make integration easier. You are provided with some classes that fit into Spring Security's existing authentication model.
223
+
224
+
Combining this with the Spring Boot Auto Configuration can make integration very easy with very little code needing to be written.
225
+
215
226
## Misc
216
227
217
228
* By default, Yoti SDKs fetch profiles from [https://api.yoti.com/api/v1](https://api.yoti.com/api/v1).
Copy file name to clipboardExpand all lines: java-sdk-api/src/main/java/com/yoti/api/client/HumanProfile.java
+20-11Lines changed: 20 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,41 +2,50 @@
2
2
3
3
/**
4
4
* Profile of an human user with convenience methods to access well-known attributes.
5
-
*
6
-
*
7
5
*/
8
6
publicinterfaceHumanProfileextendsProfile {
9
7
/**
10
-
* Corresponds to primary name in passport, and surname in English.
8
+
* Corresponds to primary name in passport, and surname in English.
9
+
*
11
10
* @return the surname
12
11
*/
13
12
StringgetFamilyName();
14
13
15
14
/**
16
15
* Corresponds to secondary names in passport, and first/middle names in English.
17
-
*
16
+
*
18
17
* @return the name
19
18
*/
20
19
StringgetGivenNames();
21
20
22
21
/**
23
22
* Equal to ${given_names} + " " + ${family_name}.
24
-
*
23
+
*
25
24
* @return the given names + the surname
25
+
* @deprecated this method has never featured as intended (it has always returned null). Deprecated since version 1.2, likely to be removed in version 2.0. Instead please use {@link #getGivenAndLastNames()}
26
26
*/
27
+
@Deprecated
27
28
StringgetFullName();
28
29
30
+
/**
31
+
* Equal to ${given_names} + " " + ${family_name}.
32
+
*
33
+
* @return the given names + the surname
34
+
* @since 1.2
35
+
*/
36
+
StringgetGivenAndLastNames();
37
+
29
38
/**
30
39
* Date of birth
31
-
*
40
+
*
32
41
* @return Date of birth
33
42
*/
34
43
DategetDateOfBirth();
35
44
36
45
/**
37
46
* Corresponds to the gender in the passport; will be one of the strings "MALE", "FEMALE" or "OTHER".
38
47
*
39
-
*@return the gender
48
+
*@return the gender
40
49
*/
41
50
GendergetGender();
42
51
@@ -50,28 +59,28 @@ public interface HumanProfile extends Profile {
50
59
/**
51
60
* The user's phone number, as verified at registration time. This will be a number with + for international prefix
0 commit comments