| Modifier and Type | Method | Description |
|---|---|---|
Principal.Builder |
addAttribute(java.lang.String key,
java.lang.Object value) |
Add a custom attribute to this principal.
|
Principal |
build() |
Build the instance from this builder.
|
Principal.Builder |
id(java.lang.String id) |
Principal id.
|
Principal.Builder |
name(java.lang.String name) |
Principal name.
|
public Principal build()
Builderpublic Principal.Builder name(java.lang.String name)
name - name of the principal (e.g. "John Doe"), also used as id, unless explicitly definedpublic Principal.Builder id(java.lang.String id)
id - id of the principal (e.g. "oid-user-55d45d5sd4"), also used as name, unless explicitly definedpublic Principal.Builder addAttribute(java.lang.String key, java.lang.Object value)
key - name of the attributevalue - value of the attribute, may be null (in that case the key is not added as an attribute)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.