| Modifier and Type | Method and Description |
|---|---|
Principal.Builder |
addAttribute(String key,
Object value)
Add a custom attribute to this principal.
|
Principal |
build()
Build the instance from this builder.
|
Principal.Builder |
id(String id)
Principal id.
|
Principal.Builder |
name(String name)
Principal name.
|
public Principal build()
Builderpublic Principal.Builder name(String name)
name - name of the principal (e.g. "John Doe"), also used as id, unless explicitly definedpublic Principal.Builder id(String id)
id - id of the principal (e.g. "oid-user-55d45d5sd4"), also used as name, unless explicitly definedpublic Principal.Builder addAttribute(String key, 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–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.