private static class Security.DistributedSubjectCombiner extends SubjectDomainCombiner
Modifier | Constructor and Description |
---|---|
private |
DistributedSubjectCombiner(Subject subject) |
Modifier and Type | Method and Description |
---|---|
ProtectionDomain[] |
combine(ProtectionDomain[] currentDomains,
ProtectionDomain[] assignedDomains)
Prepends one new SubjectDomain containing the Subject and Subject's
Principals with a CodeSource that has a null URL and no signer
Certificates.
|
getSubject
private final Subject subject
private DistributedSubjectCombiner(Subject subject)
public ProtectionDomain[] combine(ProtectionDomain[] currentDomains, ProtectionDomain[] assignedDomains)
combine
in interface DomainCombiner
combine
in class SubjectDomainCombiner
currentDomains
- the ProtectionDomains associated with the
current execution Thread, up to the most recent privileged
ProtectionDomain. The ProtectionDomains are are listed in
order of execution, with the most recently executing
ProtectionDomain residing at the beginning of the array.
This parameter may be null if the current execution Thread has no
associated ProtectionDomains.assignedDomains
- an array of inherited ProtectionDomains.
ProtectionDomains may be inherited from a parent Thread,
or from a privileged AccessControlContext.
This parameter may be null if there are no inherited ProtectionDomains.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.