Skip to content

Commit

Permalink
Merge pull request #33 from cnotin/master
Browse files Browse the repository at this point in the history
Add 'clearAll' method in SamlPanelInfo to clear all labels before displaying new values.
  • Loading branch information
emanuelduss authored Jan 6, 2019
2 parents a41ae3d + 336923f commit 6681ce4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/main/java/application/SamlTabController.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ public void setMessage(byte[] content, boolean isRequest) {

private void setInformationDisplay() {
SamlPanelInfo infoPanel = samlGUI.getInfoPanel();
infoPanel.clearAll();

try {
Document document = xmlHelpers.getXMLDocumentOfSAMLMessage(SAMLMessage);
Expand Down
19 changes: 13 additions & 6 deletions src/main/java/gui/SamlPanelInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ private void initialize() {
gbc_lblEncryption.gridy = 11;
add(lblEncryption, gbc_lblEncryption);
}

public void setAssertionTitle(String string){
lblAssertionTitle.setText(string);
}


public void setIssuer(String string){
lblIssuer.setText(string);
}
Expand Down Expand Up @@ -254,5 +250,16 @@ public void setDigestAlgorithm(String string){
public void setEncryptionAlgorithm(String string){
lblEncryption.setText(string);
}


public void clearAll(){
setIssuer("");
setSubject("");
setConditionNotBefore("");
setConditionNotAfter("");
setSubjectConfNotBefore("");
setSubjectConfNotAfter("");
setSignatureAlgorithm("");
setDigestAlgorithm("");
setEncryptionAlgorithm("");
}
}

0 comments on commit 6681ce4

Please sign in to comment.