private static class Security.SubjectProtectionDomain extends ProtectionDomain implements SubjectDomain
Modifier and Type | Field and Description |
---|---|
private static CodeSource |
nullCS |
private Subject |
subject |
Modifier | Constructor and Description |
---|---|
private |
SubjectProtectionDomain(Subject subject)
Visibility of Subject and it's principal set is guaranteed by final
reference and safe construction of this object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Implement equals to allow efficient caching of AccessControlContext.
|
Subject |
getSubject() |
int |
hashCode() |
getClassLoader, getCodeSource, getPermissions, getPrincipals, implies, toString
private static final CodeSource nullCS
private final Subject subject
private SubjectProtectionDomain(Subject subject)
public boolean equals(Object o)
public Subject getSubject()
getSubject
in interface SubjectDomain
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.