Skip to content

Commit

Permalink
Made CallerPrincipal Serializable (#107)
Browse files Browse the repository at this point in the history
* Made CallerPrincipal Serializable.

Signed-off-by: Matt Gill <[email protected]>

* Added generates serial version UID.

Signed-off-by: Matt Gill <[email protected]>
  • Loading branch information
MattGill98 authored and arjantijms committed Nov 17, 2018
1 parent 025b57e commit dc8ff9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/javax/security/enterprise/CallerPrincipal.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

package javax.security.enterprise;

import java.io.Serializable;
import java.security.Principal;

/**
* Principal that represents the caller principal associated with the invocation being
* processed by the container (e.g. the current HTTP request).
*/
public class CallerPrincipal implements Principal {
public class CallerPrincipal implements Principal, Serializable {

private static final long serialVersionUID = -6951555039431667786L;

private final String name;

Expand Down

0 comments on commit dc8ff9f

Please sign in to comment.