IdentityPrincipal
Stay organized with collections
Save and categorize content based on your preferences.
Known Direct Subclasses
IdentityGroup |
Represents a third-party group to be synced with Cloud identity Groups API. |
IdentityUser |
Represents third-party user identity and corresponding Google identity mapping. |
|
Represents third-party identity such as user or group.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Constructors
public
IdentityPrincipal
(String identity)
Public Methods
public
String
getIdentity
()
Gets identity for third-party principal.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-18 UTC.
[null,null,["Last updated 2025-03-18 UTC."],[],[],null,["# IdentityPrincipal\n\npublic abstract class **IdentityPrincipal** extends Object \n\n|---|---|---|\n| Known Direct Subclasses [IdentityGroup](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityGroup), [IdentityUser](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityUser) |--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------| | [IdentityGroup](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityGroup) | Represents a third-party group to be synced with Cloud identity Groups API. | | [IdentityUser](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityUser) | Represents third-party user identity and corresponding Google identity mapping. | |||\n\nRepresents third-party identity such as user or group. \n\n### Nested Class Summary\n\n|------|---|---|------------------------------------------------------------------------------------------------------------------------------------------|\n| enum | [IdentityPrincipal.Kind](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal.Kind) || Kind of [IdentityPrincipal](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal) |\n\n### Public Constructor Summary\n\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [IdentityPrincipal](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal#IdentityPrincipal(java.lang.String))(String identity) Constructs [IdentityPrincipal](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal) for given `identity`. |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| String | [getIdentity](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal#getIdentity())() Gets identity for third-party principal. |\n| abstract [IdentityPrincipal.Kind](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal.Kind) | [getKind](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal#getKind())() Gets kind for principal. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public\n**IdentityPrincipal**\n(String identity)\n\nConstructs [IdentityPrincipal](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal) for given `identity`. \n\n##### Parameters\n\n| identity | |\n|----------|---|\n\nPublic Methods\n--------------\n\n#### public String\n**getIdentity**\n()\n\nGets identity for third-party principal. \n\n#### public abstract [IdentityPrincipal.Kind](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/identity/IdentityPrincipal.Kind)\n**getKind**\n()\n\nGets kind for principal."]]