-
Notifications
You must be signed in to change notification settings - Fork 5
/
User.java
36 lines (30 loc) · 1.12 KB
/
User.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.genericsystem.security.model;
import org.genericsystem.api.core.annotations.Components;
import org.genericsystem.api.core.annotations.Dependencies;
import org.genericsystem.api.core.annotations.HashedInstanceValue;
import org.genericsystem.api.core.annotations.SystemGeneric;
import org.genericsystem.api.core.annotations.constraints.InstanceValueClassConstraint;
import org.genericsystem.api.core.annotations.constraints.SingularConstraint;
import org.genericsystem.api.core.annotations.value.StringValue;
import org.genericsystem.common.Generic;
import org.genericsystem.security.model.User.Password;
@SystemGeneric
@Dependencies({ Password.class, UserRole.class })
public class User implements Generic {
@SystemGeneric
@Components(User.class)
@SingularConstraint
@HashedInstanceValue
@InstanceValueClassConstraint(byte[].class)
@Dependencies(Salt.class)
public static class Password implements Generic {
}
@SystemGeneric
@Components(Password.class)
@SingularConstraint
@HashedInstanceValue
@InstanceValueClassConstraint(byte[].class)
@StringValue("Salt")
public static class Salt implements Generic {
}
}