File tree 33 files changed +75
-75
lines changed
main/java/com/ibm/intoto/attestation
custom/resource/descriptors
custom/resource/descriptors
33 files changed +75
-75
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<groupId >com.ibm.websphere.appserver.features</groupId >
6
6
<artifactId >intoto4j</artifactId >
7
- <version >1.1 .0</version >
7
+ <version >2.0 .0</version >
8
8
9
9
<name >intoto4j</name >
10
10
<description >The intoto4j library provides Java tools and classes for generating artifacts consistent with the in-toto (https://in-toto.io/) framework.</description >
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import java .util .HashMap ;
20
20
import java .util .Map ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import jakarta .json .JsonObject ;
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
- import io .intoto .attestation .utils .Utils ;
19
+ import com . ibm .intoto .attestation .utils .Utils ;
20
20
import jakarta .json .Json ;
21
21
import jakarta .json .JsonObject ;
22
22
import jakarta .json .JsonObjectBuilder ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
- import io .intoto .attestation .exceptions .StatementValueNullException ;
20
- import io .intoto .attestation .utils .Utils ;
19
+ import com . ibm .intoto .attestation .exceptions .StatementValueNullException ;
20
+ import com . ibm .intoto .attestation .utils .Utils ;
21
21
import jakarta .json .Json ;
22
22
import jakarta .json .JsonObject ;
23
23
import jakarta .json .JsonObjectBuilder ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import jakarta .json .Json ;
20
20
import jakarta .json .JsonArray ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .file ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .file ;
18
18
19
19
import java .io .File ;
20
20
21
- import io .intoto .attestation .DigestSet ;
22
- import io .intoto .attestation .ResourceDescriptor ;
23
- import io .intoto .attestation .custom .resource .descriptors .file .exceptions .WarFileException ;
24
- import io .intoto .attestation .exceptions .DigestCalculationException ;
25
- import io .intoto .attestation .exceptions .FileDoesNotExistException ;
26
- import io .intoto .attestation .exceptions .FileNullException ;
27
- import io .intoto .attestation .exceptions .NotAFileException ;
28
- import io .intoto .attestation .utils .Utils ;
21
+ import com . ibm .intoto .attestation .DigestSet ;
22
+ import com . ibm .intoto .attestation .ResourceDescriptor ;
23
+ import com . ibm .intoto .attestation .custom .resource .descriptors .file .exceptions .WarFileException ;
24
+ import com . ibm .intoto .attestation .exceptions .DigestCalculationException ;
25
+ import com . ibm .intoto .attestation .exceptions .FileDoesNotExistException ;
26
+ import com . ibm .intoto .attestation .exceptions .FileNullException ;
27
+ import com . ibm .intoto .attestation .exceptions .NotAFileException ;
28
+ import com . ibm .intoto .attestation .utils .Utils ;
29
29
30
30
/**
31
31
* A ResourceDescriptor type to encapsulate the WAR file created from a Maven project.
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .file .exceptions ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .file .exceptions ;
18
18
19
19
public class WarFileException extends Exception {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .git ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .git ;
18
18
19
- import io .intoto .attestation .ResourceDescriptor ;
20
- import io .intoto .attestation .utils .GitUtils ;
21
- import io .intoto .attestation .utils .exceptions .GitRepoUrlException ;
19
+ import com . ibm .intoto .attestation .ResourceDescriptor ;
20
+ import com . ibm .intoto .attestation .utils .GitUtils ;
21
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlException ;
22
22
23
23
/**
24
24
* A ResourceDescriptor type to encapsulate the Git repository that stores a Maven project.
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .maven ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .maven ;
18
18
19
19
import org .apache .maven .model .Dependency ;
20
20
21
- import io .intoto .attestation .ResourceDescriptor ;
22
- import io .intoto .attestation .utils .Utils ;
21
+ import com . ibm .intoto .attestation .ResourceDescriptor ;
22
+ import com . ibm .intoto .attestation .utils .Utils ;
23
23
import jakarta .json .Json ;
24
24
import jakarta .json .JsonObjectBuilder ;
25
25
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .exceptions ;
17
+ package com . ibm .intoto .attestation .exceptions ;
18
18
19
19
import java .io .File ;
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .exceptions ;
17
+ package com . ibm .intoto .attestation .exceptions ;
18
18
19
19
public class FileDoesNotExistException extends Exception {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .exceptions ;
17
+ package com . ibm .intoto .attestation .exceptions ;
18
18
19
19
public class FileNullException extends Exception {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .exceptions ;
17
+ package com . ibm .intoto .attestation .exceptions ;
18
18
19
19
public class NotAFileException extends Exception {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .exceptions ;
17
+ package com . ibm .intoto .attestation .exceptions ;
18
18
19
19
public class StatementValueNullException extends Exception {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .utils ;
17
+ package com . ibm .intoto .attestation .utils ;
18
18
19
19
import java .util .List ;
20
20
import java .util .regex .Matcher ;
21
21
import java .util .regex .Pattern ;
22
22
23
- import io .intoto .attestation .utils .exceptions .GitRepoUrlException ;
24
- import io .intoto .attestation .utils .exceptions .GitRepoUrlFormatException ;
25
- import io .intoto .attestation .utils .exceptions .GitRepoUrlNullOrEmptyException ;
23
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlException ;
24
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlFormatException ;
25
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlNullOrEmptyException ;
26
26
27
27
public class GitUtils {
28
28
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .utils ;
17
+ package com . ibm .intoto .attestation .utils ;
18
18
19
19
import java .io .File ;
20
20
import java .math .BigInteger ;
21
21
import java .nio .file .Files ;
22
22
import java .security .MessageDigest ;
23
23
import java .util .Map ;
24
24
25
- import io .intoto .attestation .exceptions .DigestCalculationException ;
25
+ import com . ibm .intoto .attestation .exceptions .DigestCalculationException ;
26
26
import jakarta .json .Json ;
27
27
import jakarta .json .JsonArray ;
28
28
import jakarta .json .JsonObject ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .utils .exceptions ;
17
+ package com . ibm .intoto .attestation .utils .exceptions ;
18
18
19
19
public class GitRepoUrlException extends Exception {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .utils .exceptions ;
17
+ package com . ibm .intoto .attestation .utils .exceptions ;
18
18
19
- import io .intoto .attestation .utils .GitUtils ;
19
+ import com . ibm .intoto .attestation .utils .GitUtils ;
20
20
21
21
public class GitRepoUrlFormatException extends GitRepoUrlException {
22
22
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .utils .exceptions ;
17
+ package com . ibm .intoto .attestation .utils .exceptions ;
18
18
19
19
public class GitRepoUrlNullOrEmptyException extends GitRepoUrlException {
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertNotEquals ;
23
23
import org .junit .jupiter .api .BeforeEach ;
24
24
import org .junit .jupiter .api .Test ;
25
25
26
- import io .intoto .test .CommonTestUtils ;
26
+ import com . ibm .intoto .test .CommonTestUtils ;
27
27
import jakarta .json .JsonObject ;
28
28
29
29
public class DigestSetTest {
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertNull ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertNull ;
21
21
import static org .junit .jupiter .api .Assertions .assertTrue ;
22
22
23
23
import org .junit .jupiter .api .Test ;
24
24
25
- import io .intoto .test .CommonTestUtils ;
25
+ import com . ibm .intoto .test .CommonTestUtils ;
26
26
import jakarta .json .Json ;
27
27
import jakarta .json .JsonObject ;
28
28
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .fail ;
20
20
21
21
import org .junit .jupiter .api .Test ;
22
22
23
- import io .intoto .attestation .exceptions .StatementValueNullException ;
24
- import io .intoto .test .CommonTestUtils ;
23
+ import com . ibm .intoto .attestation .exceptions .StatementValueNullException ;
24
+ import com . ibm .intoto .test .CommonTestUtils ;
25
25
import jakarta .json .Json ;
26
26
import jakarta .json .JsonObject ;
27
27
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertFalse ;
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation ;
17
+ package com . ibm .intoto .attestation ;
18
18
19
19
import jakarta .json .JsonObject ;
20
20
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .file ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .file ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertNotNull ;
25
25
26
26
import org .junit .jupiter .api .Test ;
27
27
28
- import io .intoto .attestation .DigestSet ;
29
- import io .intoto .attestation .custom .resource .descriptors .file .exceptions .WarFileException ;
30
- import io .intoto .test .CommonTestUtils ;
31
- import io .intoto .test .Constants ;
28
+ import com . ibm .intoto .attestation .DigestSet ;
29
+ import com . ibm .intoto .attestation .custom .resource .descriptors .file .exceptions .WarFileException ;
30
+ import com . ibm .intoto .test .CommonTestUtils ;
31
+ import com . ibm .intoto .test .Constants ;
32
32
import jakarta .json .JsonObject ;
33
33
34
34
public class WarResourceDescriptorTest {
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .git ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .git ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertFalse ;
25
25
26
26
import org .junit .jupiter .api .Test ;
27
27
28
- import io .intoto .attestation .DigestSet ;
29
- import io .intoto .attestation .ResourceDescriptor ;
30
- import io .intoto .attestation .utils .exceptions .GitRepoUrlException ;
31
- import io .intoto .attestation .utils .exceptions .GitRepoUrlFormatException ;
32
- import io .intoto .attestation .utils .exceptions .GitRepoUrlNullOrEmptyException ;
33
- import io .intoto .test .CommonTestUtils ;
28
+ import com . ibm .intoto .attestation .DigestSet ;
29
+ import com . ibm .intoto .attestation .ResourceDescriptor ;
30
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlException ;
31
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlFormatException ;
32
+ import com . ibm .intoto .attestation .utils .exceptions .GitRepoUrlNullOrEmptyException ;
33
+ import com . ibm .intoto .test .CommonTestUtils ;
34
34
import jakarta .json .Json ;
35
35
import jakarta .json .JsonObject ;
36
36
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- package io .intoto .attestation .custom .resource .descriptors .maven ;
17
+ package com . ibm .intoto .attestation .custom .resource .descriptors .maven ;
18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertNotNull ;
24
24
import org .apache .maven .model .Dependency ;
25
25
import org .junit .jupiter .api .Test ;
26
26
27
- import io .intoto .attestation .DigestSet ;
27
+ import com . ibm .intoto .attestation .DigestSet ;
28
28
import jakarta .json .Json ;
29
29
import jakarta .json .JsonObject ;
30
30
import jakarta .json .JsonObjectBuilder ;
You can’t perform that action at this time.
0 commit comments