Package com.enonic.xp.security

## Class PrincipalRelationship

- java.lang.Object
- - com.enonic.xp.security.PrincipalRelationship

-     @PublicApi
      public final class PrincipalRelationship
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `PrincipalRelationship.Builder` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object o)` |
    `static PrincipalRelationship.Builder` | `from​(PrincipalKey fromPrincipal)` |
    `PrincipalKey` | `getFrom()` |
    `PrincipalKey` | `getTo()` |
    `int` | `hashCode()` |
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getFrom

          public PrincipalKey getFrom()

    - #### getTo

          public PrincipalKey getTo()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### from

          public static PrincipalRelationship.Builder from​(PrincipalKey fromPrincipal)