public class BuilderContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BuilderContext.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
addViolation(EnforcerViolation violation) |
static BuilderContext.Builder |
builder(org.slf4j.Logger log,
String id,
Path sessionBasedir,
io.takari.builder.internal.MessageCollector messages,
BuilderWorkspace workspace) |
boolean |
checkAndRecordProperty(String action,
String name) |
boolean |
checkAndRecordWrite(String file) |
boolean |
checkExec(String command) |
boolean |
checkRead(String file) |
boolean |
checkSockets() |
void |
enter() |
String |
getId() |
io.takari.builder.internal.MessageCollector |
getMessages() |
Collection<String> |
getReadProperties()
returns system properties read by the builder
|
Collection<String> |
getTemporaryFiles()
returns normalized paths of written temporary files
|
Set<EnforcerViolation> |
getViolations() |
Collection<String> |
getWrittenFiles()
returns normalized paths of written files
|
void |
leave() |
String |
toString() |
boolean |
wasWhitelistedException(String file) |
public static Messages MESSAGES
public void enter()
public void leave()
public static BuilderContext.Builder builder(org.slf4j.Logger log, String id, Path sessionBasedir, io.takari.builder.internal.MessageCollector messages, BuilderWorkspace workspace)
public final boolean checkRead(String file)
public final boolean checkAndRecordWrite(String file)
public final boolean checkExec(String command)
public final boolean checkSockets()
public boolean addViolation(EnforcerViolation violation)
public Set<EnforcerViolation> getViolations()
public Collection<String> getWrittenFiles()
public Collection<String> getTemporaryFiles()
public Collection<String> getReadProperties()
public String getId()
public io.takari.builder.internal.MessageCollector getMessages()
public boolean wasWhitelistedException(String file)
Copyright © 2021. All rights reserved.